Skip to content

Commit

Permalink
fix(foxy-payments-api-payment-preset-form): fix live and po toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed Aug 20, 2024
1 parent a968089 commit 2ccf96e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ export class PaymentsApiPaymentPresetForm extends Base<Data> {
getPaymentMethodImageSrc: ((type: string) => string) | null = null;

private readonly __isPurchaseOrderEnabledGetValue = () => {
this.__storeLoader?.data?.is_active ? this.form.is_purchase_order_enabled : false;
return this.__storeLoader?.data?.is_active ? this.form.is_purchase_order_enabled : false;
};

private readonly __isLiveGetValue = () => {
this.__storeLoader?.data?.is_active ? this.form.is_live : false;
return this.__storeLoader?.data?.is_active ? this.form.is_live : false;
};

private readonly __storeLoaderId = 'storeLoader';
Expand Down

0 comments on commit 2ccf96e

Please sign in to comment.