Skip to content

Commit aeb44a3

Browse files
committed
Fix: old app export link (safe-global#1625)
1 parent ec02c3e commit aeb44a3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/common/PsaBanner/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@ import styles from './index.module.css'
88
import { hasFeature } from '@/utils/chains'
99
import { useCurrentChain } from '@/hooks/useChains'
1010
import useLocalStorage from '@/services/local-storage/useLocalStorage'
11-
import { useRouter } from 'next/router'
1211
import { selectAllAddressBooks } from '@/store/addressBookSlice'
1312
import { useAppSelector } from '@/store'
1413

1514
const WARNING_BANNER = 'WARNING_BANNER'
1615
const OLD_APP = 'https://gnosis-safe.io/app'
1716

1817
const ExportLink = ({ children }: { children: ReactNode }): ReactElement => {
19-
const router = useRouter()
20-
const safeAddress = router.query.safe as string
21-
const url = safeAddress ? `${OLD_APP}/${safeAddress}/settings/details` : `${OLD_APP}/export`
18+
const url = `${OLD_APP}/export`
2219

2320
return (
2421
<a href={url} target="_blank" rel="noreferrer">

0 commit comments

Comments
 (0)