From 469f553e31ccfa8ea425a8861d53325e7a150810 Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:53:07 +0530 Subject: [PATCH] reverted 08e89c7e75c8404157130af8c0ebd554c7efa857 --- frontend/mgramseva/lib/utils/validators/validators.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/mgramseva/lib/utils/validators/validators.dart b/frontend/mgramseva/lib/utils/validators/validators.dart index f26ae9539..1fb309612 100644 --- a/frontend/mgramseva/lib/utils/validators/validators.dart +++ b/frontend/mgramseva/lib/utils/validators/validators.dart @@ -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;