Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
YeungKC committed Jul 5, 2023
1 parent 17dd159 commit 23fadf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ui/setting/security_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ class _InputPasscode extends HookWidget {
if (confirmPasscode.value == null) return;

if (passcode.value != confirmPasscode.value) {
// todo fix toast
showToastFailed(context.l10n.passcodeIncorrect, context: context);
WidgetsBinding.instance.addPostFrameCallback((_) {
showToastFailed(context.l10n.passcodeIncorrect);
});

passcode.value = null;
confirmPasscode.value = null;
textEditingController.text = '';
return;
}

SecurityKeyValue.instance.passcode = passcode.value;
Expand Down

0 comments on commit 23fadf9

Please sign in to comment.