From ed55fa34c10a3591d3ff476218a5e6a7d5cc39df Mon Sep 17 00:00:00 2001 From: maciek Date: Thu, 7 Sep 2023 18:04:32 +0200 Subject: [PATCH] chore: standalone pages for withdraw and transfer --- apps/trading/client-pages/withdraw/withdraw.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/trading/client-pages/withdraw/withdraw.tsx b/apps/trading/client-pages/withdraw/withdraw.tsx index 38bb1735a..de40002ae 100644 --- a/apps/trading/client-pages/withdraw/withdraw.tsx +++ b/apps/trading/client-pages/withdraw/withdraw.tsx @@ -7,7 +7,7 @@ import { useEffect } from 'react'; export const Withdraw = () => { const [searchParams, setSearchParams] = useSearchParams(); - const assetId = searchParams.get('assetId'); + const assetId = searchParams.get('assetId') || undefined; const asset = useWithdrawStore((store) => store.asset); useEffect(() => { if (assetId && asset?.id && assetId !== asset.id) {