(data)
| 43 | const portalMutation = useMutation( |
| 44 | trpc.subscription.portal.mutationOptions({ |
| 45 | onSuccess(data) { |
| 46 | if (data?.url) { |
| 47 | window.location.href = data.url; |
| 48 | } |
| 49 | }, |
| 50 | onError(error) { |
| 51 | toast.error(error.message); |
| 52 | }, |
nothing calls this directly
no outgoing calls
no test coverage detected