Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
reverted 08e89c7
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldevgarg authored Sep 12, 2023
1 parent 5c91e92 commit 469f553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/mgramseva/lib/utils/validators/validators.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Validators {
static String? amountValidator(String? v) {
if (v!.trim().isEmpty) {
return '${ApplicationLocalizations.of(navigatorKey.currentContext!).translate(i18.expense.AMOUNT_MENTIONED_IN_THE_BILL)}';
} else if (double.parse(v) <= 0 || (((math.log(double.parse(v!)) / math.ln10) + 1) as int) > 6) {
} else if (double.parse(v) <= 0) {
return '${ApplicationLocalizations.of(navigatorKey.currentContext!).translate(i18.expense.ENTER_VALID_AMOUNT)}';
}
return null;
Expand Down

0 comments on commit 469f553

Please sign in to comment.