hide coupons if flavor=autobonus
This commit is contained in:
@@ -77,11 +77,12 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
|
||||
widgetList.add(getInputField()); // Нельзя добавить еще одно поле таким же способом
|
||||
|
||||
if (this.loyalityType == 'bonus') {
|
||||
|
||||
|
||||
if (this.flavor != 'autobonus') {
|
||||
if (this.loyalityType == 'bonus') {
|
||||
widgetList.add(getBonusInputField());
|
||||
}
|
||||
}
|
||||
|
||||
if (this.coupons.length > 0) {
|
||||
widgetList.add(getItemTitle(StringsLocalization.selectCoupons()));
|
||||
@@ -98,6 +99,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
widgetList.add(wrapButton(getScreenMargins(36.0), getCompleteButton()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user