added float point in purchase confirmation

This commit is contained in:
Semyon Babushkin
2017-11-01 14:08:38 +03:00
parent 52aab9a6e0
commit b18064653a
3 changed files with 3 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class StringsLocalization {
static String confirmPurchase(String val, int code) {
String trimmedVal =val.substring(0, val.length - 3);
return sprintf(Intl.message('confirm_purchase', name: 'confirm_purchase', locale: Intl.defaultLocale), [trimmedVal, declineCurrency(int.parse(trimmedVal), code)]);
return sprintf(Intl.message('confirm_purchase', name: 'confirm_purchase', locale: Intl.defaultLocale), [val, declineCurrency(int.parse(trimmedVal), code)]);
}
static String purchaseCompleted(String val, int code) {