Skip to content

Commit

Permalink
Remove additional info icon for ryan flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Emili Castells Guasch authored and Emili Castells Guasch committed May 1, 2024
1 parent 8a9dd52 commit 912e0af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/ppcp-axo/resources/js/AxoManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ class AxoManager {
this.el.gatewayRadioButton.trigger('change');
}

async renderWatermark() {
async renderWatermark(includeAdditionalInfo = true) {
(await this.fastlane.FastlaneWatermarkComponent({
includeAdditionalInfo: true
includeAdditionalInfo
})).render(this.el.watermarkContainer.selector);
}

Expand Down Expand Up @@ -562,6 +562,8 @@ class AxoManager {
this.hideGatewaySelection = true;
this.$('.wc_payment_methods label').hide();

await this.renderWatermark(false);

this.rerender();

} else {
Expand All @@ -577,6 +579,8 @@ class AxoManager {
this.setStatus('validEmail', true);
this.setStatus('hasProfile', false);

await this.renderWatermark(true);

this.cardComponent = (await this.fastlane.FastlaneCardComponent(
this.cardComponentData()
)).render(this.el.paymentContainer.selector + '-form');
Expand Down

0 comments on commit 912e0af

Please sign in to comment.