Skip to content

Commit

Permalink
fix null point exception
Browse files Browse the repository at this point in the history
  • Loading branch information
emavgl committed Mar 4, 2024
1 parent 468fb5f commit bce1228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ class OinkoinAppState extends State<OinkoinApp> {
if (!usesWesternArabicNumerals(toSet)) {
toSet = Locale.fromSubtags(languageCode: 'en', countryCode: "US");
}
checkForSettingInconsistency(toSet);
ServiceConfig.currencyLocale = toSet;
ServiceConfig.currencyNumberFormat = getNumberFormatWithCustomizations(locale: toSet);
ServiceConfig.currencyNumberFormatWithoutGrouping = getNumberFormatWithCustomizations(locale: toSet, turnOffGrouping: true);
checkForSettingInconsistency(toSet);
}

void checkForSettingInconsistency(Locale toSet) {
Expand Down

0 comments on commit bce1228

Please sign in to comment.