Skip to content

Commit

Permalink
chore: Removed some safe margins.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Jul 12, 2024
1 parent 6778516 commit 67f51a5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/pages/totp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ class _TotpPageState extends ConsumerState<TotpPage> with BrightnessListener {
/// Adds the TOTP to the repository.
Future<Result> addTotp() async {
bool willExceed = await ref.read(totpLimitExceededProvider.notifier).willExceedIfAddMore(count: 1);
if (willExceed && mounted) {
willExceed = !(await MandatoryTotpLimitDialog.show(
context,
title: translations.totpLimit.addDialog.title,
message: translations.totpLimit.addDialog.message(
count: App.freeTotpsLimit.toString(),
),
cancelButton: true,
));
}
if (willExceed) {
if (mounted) {
await TotpLimitDialog.show(
context,
title: translations.totpLimit.addDialog.title,
message: translations.totpLimit.addDialog.message(
count: App.freeTotpsLimit.toString(),
),
cancelButton: true,
);
}
return const ResultCancelled();
}

Expand Down

0 comments on commit 67f51a5

Please sign in to comment.