Crypto iOS
This commit is contained in:
@@ -78,10 +78,8 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.reward(), loyalty));
|
||||
}
|
||||
|
||||
if (bonus.length > 0) {
|
||||
if (app == 'crypto') {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.joys(), bonus));
|
||||
} else {
|
||||
if (app != 'crypto') {
|
||||
if (bonus.length > 0) {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.bonus(), bonus));
|
||||
}
|
||||
}
|
||||
@@ -89,7 +87,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
widgetList.add(getHintLabel());
|
||||
widgetList.add(getInputField()); // Нельзя добавить еще одно поле таким же способом
|
||||
|
||||
if (app != 'autobonus') {
|
||||
if ((app != 'autobonus') || (app != 'crypto')) {
|
||||
|
||||
if (this.loyalityType == 'bonus') {
|
||||
widgetList.add(getBonusInputField());
|
||||
|
||||
@@ -98,9 +98,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
|
||||
}
|
||||
|
||||
if (bonusMinus > 0) {
|
||||
widgetList.add(getValueWithDescription(app == 'crypto'
|
||||
? StringsLocalization.joysMinus()
|
||||
: StringsLocalization.bonusMinus(), bonusMinus.toString()));
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.bonusMinus(), bonusMinus.toString()));
|
||||
}
|
||||
|
||||
if (app != 'autobonus') {
|
||||
@@ -167,7 +165,11 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
|
||||
|
||||
getMessageTitle() {
|
||||
if (currency != null) {
|
||||
return StringsLocalization.purchaseCompleted(sum, currency);
|
||||
if (app != 'crypto') {
|
||||
return StringsLocalization.paymentCompleted(sum, currency);
|
||||
} else {
|
||||
return StringsLocalization.purchaseCompleted(sum, currency);
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user