MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / onSuccess

Function onSuccess

apps/start/src/components/organization/billing.tsx:45–49  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

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 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected