pop only PIN screen after successful auth

This commit is contained in:
OmarHatem 2023-02-24 15:38:05 +02:00
parent a210a1e325
commit 143a6eecf5

View file

@ -104,9 +104,9 @@ class DesktopSidebarWrapper extends BasePage {
Navigator.of(context).pushNamed(
Routes.unlock,
arguments: (bool isAuthenticatedSuccessfully, AuthPageState auth) {
auth.close(
route: isAuthenticatedSuccessfully ? Routes.dashboard : null,
);
if (isAuthenticatedSuccessfully) {
auth.close();
}
},
);
},