undo view account url

This commit is contained in:
saml33 2023-10-19 12:04:10 +11:00
parent bc6dcf09ee
commit 2dfbe34076
1 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,6 @@ import useLocalStorageState from 'hooks/useLocalStorageState'
import { DEFAULT_PRIORITY_FEE_LEVEL } from './settings/RpcSettings' import { DEFAULT_PRIORITY_FEE_LEVEL } from './settings/RpcSettings'
import { useHiddenMangoAccounts } from 'hooks/useHiddenMangoAccounts' import { useHiddenMangoAccounts } from 'hooks/useHiddenMangoAccounts'
import { notify } from 'utils/notifications' import { notify } from 'utils/notifications'
import { useIsWhiteListed } from 'hooks/useIsWhiteListed'
const set = mangoStore.getState().set const set = mangoStore.getState().set
const actions = mangoStore.getState().actions const actions = mangoStore.getState().actions
@ -162,14 +161,13 @@ const ReadOnlyMangoAccount = () => {
const groupLoaded = mangoStore((s) => s.groupLoaded) const groupLoaded = mangoStore((s) => s.groupLoaded)
const ma = router.query?.address const ma = router.query?.address
const { hiddenAccounts } = useHiddenMangoAccounts() const { hiddenAccounts } = useHiddenMangoAccounts()
const { data: isWhiteListed } = useIsWhiteListed()
useEffect(() => { useEffect(() => {
if (!groupLoaded) return if (!groupLoaded) return
const set = mangoStore.getState().set const set = mangoStore.getState().set
const group = mangoStore.getState().group const group = mangoStore.getState().group
if (hiddenAccounts?.includes(ma as string) && !isWhiteListed) { if (hiddenAccounts?.includes(ma as string)) {
notify({ notify({
title: 'Private Account mode enabled', title: 'Private Account mode enabled',
type: 'info', type: 'info',