Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Fix recovery verification type error

Neeraj Gupta0dea2e3e90af
diff --git a/mobile/apps/photos/lib/ui/account/verify_recovery_page.dart b/mobile/apps/photos/lib/ui/account/verify_recovery_page.dart
index 2570931a68..39863c9c43 100644
--- a/mobile/apps/photos/lib/ui/account/verify_recovery_page.dart
+++ b/mobile/apps/photos/lib/ui/account/verify_recovery_page.dart
@@ -89,7 +89,7 @@ class _VerifyRecoveryPageState extends State<VerifyRecoveryPage> {
secondButtonLabel: AppLocalizations.of(context).viewRecoveryKey,
secondButtonAction: ButtonAction.second,
);
- if (result!.action == ButtonAction.second) {
+ if (result?.action == ButtonAction.second) {
await _onViewRecoveryKeyClick();
}
}