diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 079061bf80d8..072a15282a54 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -106443,7 +106443,7 @@ if (C.JSString_methods.startsWith$1(url, "https://invoicing.co")) secret = ""; t1 = type$.legacy_String; - headers = P.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.64", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1); + headers = P.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.66", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1); if (token.length !== 0) headers.$indexSet(0, "X-API-Token", token); if ((idToken == null ? "" : idToken).length !== 0) @@ -106466,9 +106466,9 @@ else if (serverVersion == null) throw H.wrapException("Error: please check that Invoice Ninja v5 is installed on the server"); else { - t2 = Q.Version__compare(Q.Version_parse("5.0.64"), Q.Version_parse(minClientVersion)); + t2 = Q.Version__compare(Q.Version_parse("5.0.66"), Q.Version_parse(minClientVersion)); if (t2 < 0) - throw H.wrapException("Error: client not supported, please update to the latest version [Current v5.0.64 < Minimum v" + H.S(minClientVersion) + "]"); + throw H.wrapException("Error: client not supported, please update to the latest version [Current v5.0.66 < Minimum v" + H.S(minClientVersion) + "]"); else { t2 = Q.Version__compare(Q.Version_parse(serverVersion), Q.Version_parse("5.0.4")); if (t2 < 0) @@ -308624,8 +308624,8 @@ // returning from await. prefs = $async$result; appVersion = H._asStringQ(J.$index$asx(prefs._preferenceCache, "app_version")); - prefs._setValue$3("String", "app_version", "5.0.64"); - if (!J.$eq$(appVersion, "5.0.64")) { + prefs._setValue$3("String", "app_version", "5.0.66"); + if (!J.$eq$(appVersion, "5.0.66")) { $async$self.authRepository.delete$0(0); $async$self.uiRepository.delete$0(0); $async$self.staticRepository.delete$0(0); @@ -309658,7 +309658,7 @@ version = "v" + (t1 == null ? "" : t1); if (version.length !== 0) version += "-"; - return C.JSString_methods.$add(version + D.getPlatformLetter(), C.JSArray_methods.get$last("5.0.64".split("."))); + return C.JSString_methods.$add(version + D.getPlatformLetter(), C.JSArray_methods.get$last("5.0.66".split("."))); }, get$historyList: function() { var _this = this, @@ -382443,8 +382443,7 @@ t2 = t1.uiState.selectedCompanyIndex; client = J.$index$asx(t1.userCompanyStates._list, t2).clientState.$get$1(0, invoice.clientId); t2 = L.Localizations_of(context, C.Type_AppLocalization_KyD, type$.legacy_AppLocalization); - action.toString; - if (C.JSString_methods.startsWith$1(A.toSnakeCase(action.super$EnumClass$toString(0)), "email") && !client.get$hasEmailAddress()) { + if (action != null && C.JSString_methods.startsWith$1(A.toSnakeCase(action.super$EnumClass$toString(0)), "email") && !client.get$hasEmailAddress()) { O.showMessageDialog(context, t2.get$clientEmailNotSet(), _null, H.setRuntimeTypeInfo([U.TextButton$(false, L.Text$(t2.get$editClient().toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new F._InvoiceEditState__onSavePressed_closure(context, client), _null)], type$.JSArray_legacy_TextButton)); return; }