Skip to content

Commit

Permalink
[ECP-9206] Fix return type in checking adyen orders
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed Jul 10, 2024
1 parent 13b5a47 commit e529a96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ Component.register('adyen-notifications', {
}
},

beforeMount() {
this.showWidget = this.adyenService.isAdyenOrder(this.order);
async beforeMount() {
this.showWidget = await this.adyenService.isAdyenOrder(this.order);
if (this.showWidget) {
this.fetchNotifications();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ Component.register('adyen-partial-payments', {
}
},

beforeMount() {
async beforeMount() {
this.isVersionOlderThan65 = VersionHelper.isVersionOlderThan65();
this.showWidget = this.adyenService.isAdyenOrder(this.order);
this.showWidget = await this.adyenService.isAdyenOrder(this.order);

if (this.showWidget) {
this.fetchAdyenPartialPayments();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ Component.register('adyen-refund', {
},
},

beforeMount() {
this.showWidget = this.adyenService.isAdyenOrder(this.order);
async beforeMount() {
this.showWidget = await this.adyenService.isAdyenOrder(this.order);
if (this.showWidget) {
this.fetchRefunds();
}
Expand Down

0 comments on commit e529a96

Please sign in to comment.