diff --git a/lib/home.dart b/lib/home.dart index 7c6af0a57..6b6c44363 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -272,14 +272,14 @@ class HomeInnerState extends State with SingleTickerProviderState } _backup() async { - final didAuthenticate = !isMobile() || await authenticate(context, S.of(context).pleaseAuthenticateToShowAccountSeed); + final didAuthenticate = await authenticate(context, S.of(context).pleaseAuthenticateToShowAccountSeed); if (didAuthenticate) { Navigator.of(context).pushNamed('/backup'); } } _keyTool() async { - final didAuthenticate = !isMobile() || await authenticate(context, S.of(context).pleaseAuthenticateToShowAccountSeed); + final didAuthenticate = await authenticate(context, S.of(context).pleaseAuthenticateToShowAccountSeed); if (didAuthenticate) { Navigator.of(context).pushNamed('/keytool'); } diff --git a/lib/main.dart b/lib/main.dart index dd602ea1f..f5ba0edd4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -643,6 +643,7 @@ DecodedPaymentURI decodeAddress(BuildContext context, String? v) { } Future authenticate(BuildContext context, String reason) async { + if (!isMobile()) return true; final localAuth = LocalAuthentication(); try { final bool didAuthenticate;