Skip to content

Commit

Permalink
[Customer Center] Fix for disabled promo offer button (#4142)
Browse files Browse the repository at this point in the history
I noticed the purchase button for the promo offers is always disabled.
Changing the order of the modifiers fixes it
  • Loading branch information
vegaro authored Aug 2, 2024
1 parent 43ad9b1 commit dbd43aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ struct ManageSubscriptionButton: View {
Text(path.title)
}
})
.buttonStyle(ManageSubscriptionsButtonStyle())
.disabled(self.viewModel.loadingPath != nil)
.restorePurchasesAlert(isPresented: self.$viewModel.showRestoreAlert)
.sheet(item: self.$viewModel.promotionalOfferData,
onDismiss: {
Expand All @@ -322,8 +324,6 @@ struct ManageSubscriptionButton: View {
product: promotionalOfferData.product,
promoOfferDetails: promotionalOfferData.promoOfferDetails)
})
.buttonStyle(ManageSubscriptionsButtonStyle())
.disabled(self.viewModel.loadingPath != nil)
}
}

Expand Down

0 comments on commit dbd43aa

Please sign in to comment.