diff --git a/src/client/app/AccountPage.tsx b/src/client/app/AccountPage.tsx index 669bc86..df3e8c6 100644 --- a/src/client/app/AccountPage.tsx +++ b/src/client/app/AccountPage.tsx @@ -82,10 +82,6 @@ function BuyMoreButton({ isLoading, setIsLoading }: { isLoading: boolean, setIsL function CustomerPortalButton({ isLoading, setIsLoading }: { isLoading: boolean, setIsLoading: Dispatch> }) { 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); };