Upgrade dialog: Disable submit button for free tier

This commit is contained in:
binwiederhier 2023-02-25 22:24:04 -05:00
parent f1bcc26cfe
commit 00879d11d3
3 changed files with 7 additions and 7 deletions

View file

@ -56,7 +56,7 @@ const UpgradeDialog = (props) => {
submitButtonLabel = t("account_upgrade_dialog_button_redirect_signup");
submitAction = Action.REDIRECT_SIGNUP;
banner = null;
} else if (currentTierCode === newTierCode && currentInterval === interval) {
} else if (currentTierCode === newTierCode && (currentInterval === undefined || currentInterval === interval)) {
submitButtonLabel = t("account_upgrade_dialog_button_update_subscription");
submitAction = null;
banner = (currentTierCode) ? Banner.PRORATION_INFO : null;