Skip to content

Commit

Permalink
fix :lingui in wallet ui (#2458)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh authored Dec 20, 2023
1 parent 0513391 commit ffac488
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/WalletPopup/WalletView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ type Props = {
}

// This is intentional, we don't need to persist in localStorage
let storedView = getView().ASSETS
let storedView: string | undefined = undefined

export default function WalletView({
onDismiss,
onPin,
Expand All @@ -124,7 +125,7 @@ export default function WalletView({
toggleShowBalance,
}: Props) {
const View = getView()
const [view, setView] = useState<string>(storedView)
const [view, setView] = useState<string>(storedView || View.ASSETS)
const theme = useTheme()
const { mixpanelHandler } = useMixpanel()
const navigate = useNavigate()
Expand Down

0 comments on commit ffac488

Please sign in to comment.