mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-03-29 11:12:19 +01:00
Update AccountPage.tsx
This commit is contained in:
parent
b10fd409c9
commit
0013fab211
@ -82,10 +82,6 @@ function BuyMoreButton({ isLoading, setIsLoading }: { isLoading: boolean, setIsL
|
||||
function CustomerPortalButton({ isLoading, setIsLoading }: { isLoading: boolean, setIsLoading: Dispatch<SetStateAction<boolean>> }) {
|
||||
const handleClick = () => {
|
||||
setIsLoading(true);
|
||||
if (!STRIPE_CUSTOMER_PORTAL_LINK) {
|
||||
throw new Error('STRIPE_CUSTOMER_PORTAL_LINK is undefined');
|
||||
return
|
||||
}
|
||||
window.open(STRIPE_CUSTOMER_PORTAL_LINK, '_blank');
|
||||
setIsLoading(false);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user