Skip to content

Commit

Permalink
correctly redirect from prime asset selection
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jun 21, 2024
1 parent 390b5d8 commit f4175d5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ export function SelectPrimeAssetTable<TData, TValue>({
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) => (
Expand Down

0 comments on commit f4175d5

Please sign in to comment.