Skip to content

Commit 8238bab

Browse files
committed
fix: remove undeclared setIsPaying reference in LinkStripeAccount
1 parent aceb628 commit 8238bab

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

sites/mainweb/components/portal/LinkStripeAccount.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,6 @@ export default function LinkStripeAccount({ onSuccess }: LinkStripeAccountProps)
5757
},
5858
});
5959

60-
const payMutation = trpc.stripe.createCheckoutSession.useMutation({
61-
onSuccess: (data) => {
62-
if (data?.url) {
63-
window.location.href = data.url;
64-
}
65-
},
66-
onError: (err) => {
67-
setError(err.message);
68-
setIsPaying(false);
69-
},
70-
});
71-
72-
const handlePay = () => {
73-
setError(null);
74-
setIsPaying(true);
75-
payMutation.mutate({ returnUrl: window.location.href });
76-
};
77-
7860
const handleSubmit = (e: React.FormEvent) => {
7961
e.preventDefault();
8062
setError(null);

0 commit comments

Comments
 (0)