Skip to content

Commit

Permalink
Throw error so it send data to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Jan 15, 2025
1 parent aaa74b3 commit 769723e
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import { useOnboardingStatus } from '@/onboarding/hooks/useOnboardingStatus';
import { AppPath } from '@/types/AppPath';
import React from 'react';
import { useNavigate } from 'react-router-dom';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar';

const StyledCheckContainer = styled.div`
align-items: center;
Expand All @@ -44,7 +42,6 @@ const StyledButtonContainer = styled.div`
export const PaymentSuccess = () => {
const theme = useTheme();
const navigate = useNavigate();
const { enqueueSnackBar } = useSnackBar();
const subscriptionStatus = useSubscriptionStatus();
const onboardingStatus = useOnboardingStatus();
const [getCurrentUser] = useGetCurrentUserLazyQuery();
Expand All @@ -69,12 +66,9 @@ export const PaymentSuccess = () => {
return;
}

enqueueSnackBar(
throw new Error(
"We're waiting for a confirmation from our payment provider (Stripe).\n" +
'Please try again in a few seconds, sorry.',
{
variant: SnackBarVariant.Warning,
},
);
};

Expand Down

0 comments on commit 769723e

Please sign in to comment.