Racib and Crypto_int

This commit is contained in:
vtretyakov
2019-02-14 16:43:00 +07:00
parent d29e035040
commit 56e42a8594
9 changed files with 52 additions and 51 deletions

View File

@@ -91,7 +91,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
widgetList.add(getValueWithDescription(StringsLocalization.buyer(), username));
widgetList.add(getSuccessMessage());
if (app != 'crypto') {
if (app != 'crypto' || app != 'racib') {
if (bonusPlus > 0) {
widgetList.add(getValueWithDescription(StringsLocalization.bonusPlus(), bonusPlus.toString()));
}
@@ -103,11 +103,11 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
if (app != 'autobonus') {
widgetList.add(getValueWithDescription(StringsLocalization.discountRate(), '${details['discount']}%'));
if (app != 'crypto') {
if (app != 'crypto' || app != 'racib') {
widgetList.add(getValueWithDescription(StringsLocalization.discountSum(), '${details['sum_discount']}'));
}
}
if (app != 'crypto' && this.coupons.length > 0) {
if ((app != 'crypto' || app != 'racib') && this.coupons.length > 0) {
widgetList.add(getItemTitle(StringsLocalization.couponsUsed()));
this.coupons.forEach((couponItem) {
widgetList.add(getItemToggle(
@@ -165,7 +165,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
getMessageTitle() {
if (currency != null) {
if (app != 'crypto') {
if (app != 'crypto' || app != 'racib') {
return StringsLocalization.paymentCompleted(sum, currency);
} else {
return StringsLocalization.purchaseCompleted(sum, currency);