Skip to content

Commit f71fc37

Browse files
committed
cleanup
1 parent d798e65 commit f71fc37

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/pages/account.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { useEffect, useState } from 'react'
22
import { useRouter } from 'next/router'
33
import { useQueryClient } from '@tanstack/react-query'
44
import { Icon } from '~/components/Icon'
5+
import { AUTH_SERVER } from '~/constants'
56
import { AccountInfo } from '~/containers/Subscribtion/AccountInfo'
7+
import { useAuthContext } from '~/containers/Subscribtion/auth'
68
import { SubscribeLayout } from '~/containers/Subscribtion/Layout'
79
import { WalletProvider } from '~/layout/WalletProvider'
8-
import { AUTH_SERVER } from '~/constants'
9-
import { useAuthContext } from '~/containers/Subscribtion/auth'
1010

1111
export default function Account() {
1212
const router = useRouter()
@@ -45,12 +45,6 @@ export default function Account() {
4545

4646
await queryClient.invalidateQueries({ queryKey: ['subscription'] })
4747
setPaymentStatus('success')
48-
49-
// Remove session_id from URL after successful verification
50-
setTimeout(() => {
51-
router.replace('/account', undefined, { shallow: true })
52-
setShowPaymentModal(false)
53-
}, 3000)
5448
} catch (err) {
5549
console.error('Error verifying session:', err)
5650
setError(err instanceof Error ? err.message : 'Failed to verify payment')

0 commit comments

Comments
 (0)