mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 01:28:32 +00:00
Fix Stripe dashboard button (#4916)
This commit is contained in:
parent
c750673a42
commit
23433de2bf
1 changed files with 1 additions and 6 deletions
|
|
@ -8,7 +8,6 @@ import { FragmentType, graphql, useFragment } from '@/gql';
|
|||
import { BillingPlanType } from '@/gql/graphql';
|
||||
import { ExternalLinkIcon } from '@radix-ui/react-icons';
|
||||
import { CardElement } from '@stripe/react-stripe-js';
|
||||
import { useRouter } from '@tanstack/react-router';
|
||||
|
||||
const GenerateStripeLinkMutation = graphql(`
|
||||
mutation GenerateStripeLinkMutation($selector: OrganizationSelectorInput!) {
|
||||
|
|
@ -37,7 +36,6 @@ export const ManagePaymentMethod = (props: {
|
|||
plan: BillingPlanType;
|
||||
}) => {
|
||||
const [mutation, mutate] = useMutation(GenerateStripeLinkMutation);
|
||||
const router = useRouter();
|
||||
const organization = useFragment(BillingPaymentMethod_OrganizationFragment, props.organization);
|
||||
const info = organization.billingConfiguration.paymentMethod;
|
||||
|
||||
|
|
@ -68,10 +66,7 @@ export const ManagePaymentMethod = (props: {
|
|||
},
|
||||
}).then(result => {
|
||||
if (result.data?.generateStripePortalLink) {
|
||||
void router.navigate({
|
||||
to: result.data.generateStripePortalLink,
|
||||
});
|
||||
// void router.push(result.data.generateStripePortalLink);
|
||||
window.location.href = result.data.generateStripePortalLink;
|
||||
}
|
||||
});
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue