From 07a47cba50fa8523b1e3a0079092fd459b6073e2 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Thu, 6 Oct 2022 08:59:55 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index bd54c25fa162..1ab9069f1173 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -60903,6 +60903,14 @@ } } }, + _preCheck() { + var t1 = $.$get$navigatorKey(); + t1.toString; + t1 = A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState).__Store__state_A; + t1 === $ && A.throwUnnamedLateFieldNI(); + if (t1.isSaving) + throw A.wrapException("Please wait for the current request to complete"); + }, _parseError(code, response) { var jsonResponse, error, error0, message, exception, _s6_ = "errors", _s23_ = "Failed to parse error: ", @@ -353895,6 +353903,7 @@ switch ($async$goto) { case 0: // Function start + A._preCheck(); if (!B.JSString_methods.contains$1(url, "?")) url += "?"; A.print("POST: " + url); @@ -353958,6 +353967,7 @@ switch ($async$goto) { case 0: // Function start + A._preCheck(); if (!B.JSString_methods.contains$1(url, "?")) url += "?"; A.print("PUT: " + url); @@ -354000,6 +354010,7 @@ switch ($async$goto) { case 0: // Function start + A._preCheck(); if (!B.JSString_methods.contains$1(url, "?")) url += "?"; A.print("Delete: " + url); @@ -449101,7 +449112,7 @@ amountPlaceholder += B.JSString_methods.$add(" \u2022 " + t2.get$credit() + " ", A.formatNumber(_box_0.creditTotal, context, payment.clientId, _null, B.FormatNumberType_0, true, _null, false)); t3 = payment.amount; if (t3 !== 0) - limit = t3 - _box_0.paymentTotal; + limit = t3 - payment.applied - _box_0.paymentTotal; else { t4 = _box_0.creditTotal; limit = t4 !== 0 ? t4 - _box_0.paymentTotal : _null;