Reset logic

This commit is contained in:
Connor Yoh
2025-11-24 14:31:54 +00:00
parent 816077fca8
commit 2b16a55371
@@ -31,7 +31,13 @@ export const useCheckoutState = (planGroup: PlanTierGroup) => {
: planGroup.monthly;
const resetState = useCallback(() => {
setState({ currentStage: 'email', loading: false });
setState({
currentStage: 'email',
loading: false,
clientSecret: undefined,
sessionId: undefined,
error: undefined
});
setStageHistory([]);
setEmailInput('');
setEmailError('');