We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aceb628 commit 8238babCopy full SHA for 8238bab
sites/mainweb/components/portal/LinkStripeAccount.tsx
@@ -57,24 +57,6 @@ export default function LinkStripeAccount({ onSuccess }: LinkStripeAccountProps)
57
},
58
});
59
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
78
const handleSubmit = (e: React.FormEvent) => {
79
e.preventDefault();
80
setError(null);
0 commit comments