From f4175d5f61eb79d457a787ae3f7cbc2f0119c934 Mon Sep 17 00:00:00 2001 From: eli-d <64763513+eli-d@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:04:34 +0930 Subject: [PATCH] correctly redirect from prime asset selection --- .../_SelectPrimeAssetTable/SelectPrimeAssetTable.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/app/stake/pool/create/select-prime-asset/_SelectPrimeAssetTable/SelectPrimeAssetTable.tsx b/web/src/app/stake/pool/create/select-prime-asset/_SelectPrimeAssetTable/SelectPrimeAssetTable.tsx index 3cd0db12..ed9652d8 100644 --- a/web/src/app/stake/pool/create/select-prime-asset/_SelectPrimeAssetTable/SelectPrimeAssetTable.tsx +++ b/web/src/app/stake/pool/create/select-prime-asset/_SelectPrimeAssetTable/SelectPrimeAssetTable.tsx @@ -133,9 +133,10 @@ export function SelectPrimeAssetTable({ className="border-b-0 cursor-pointer" onClick={() => { // assume the first token is always the original - setToken0((row.original as any).tokens[0]); + const [token0] = row.original.tokens + setToken0(token0) setToken1(fUSDC); - router.back(); + router.push(`/stake/pool/create?id=${token0.address}`); }} > {row.getVisibleCells().map((cell) => (