Skip to content

Commit

Permalink
add improvement idea comment
Browse files Browse the repository at this point in the history
  • Loading branch information
r-southworth committed Mar 13, 2024
1 parent c66ede6 commit 0c2680e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/users/provider/StripeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if (!stripeData) {
} else {
console.log(stripeData)
}

// Improvement: This probably shouldn't be needed in the button like this the page should check that before loading the button at all. But this works for now.
if (stripeData === null ||stripeData.length === 0) {
alert(t("messages.noProvider"));
location.href = `/${lang}/provider/createaccount`;
Expand Down

0 comments on commit 0c2680e

Please sign in to comment.