Skip to content

Commit

Permalink
Update payment-methods.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Feb 1, 2025
1 parent aa2e328 commit 1b7db25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const PaymentMethodCard = ({
type: Stripe.PaymentMethod.Type;
paymentMethod?: Stripe.PaymentMethod;
}) => {
const router = useRouter();
const { slug } = useWorkspace();
const [isLoading, setIsLoading] = useState(false);

Expand All @@ -140,8 +141,7 @@ const PaymentMethodCard = ({
},
).then((res) => res.json());

window.open(url, "_blank");
setIsLoading(false);
router.push(url);
};

return (
Expand Down

0 comments on commit 1b7db25

Please sign in to comment.