File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11import {
22 getChainName ,
33 RozoPayToken ,
4+ rozoSolana ,
5+ solana ,
46 WalletPaymentOption ,
57} from "@rozoai/intent-common" ;
68import { useCallback , useEffect , useRef } from "react" ;
@@ -110,10 +112,14 @@ export function useTokenOptions(mode: "evm" | "solana" | "stellar" | "all"): {
110112
111113 if ( shouldIncludeSolana ) {
112114 // Filter Solana options by selectedChainId if provided
115+ // Note: solana (501) and rozoSolana (900) are both Solana chains
116+ // The API returns rozoSolana options, so we need to accept both chainIds
113117 const solanaOptionsRaw = solanaPaymentOptions . options ?? [ ] ;
114118 const filteredSolanaOptions = selectedChainId
115119 ? solanaOptionsRaw . filter (
116- ( option ) => option . balance . token . chainId === selectedChainId
120+ ( option ) =>
121+ option . balance . token . chainId === solana . chainId ||
122+ option . balance . token . chainId === rozoSolana . chainId
117123 )
118124 : solanaOptionsRaw ;
119125
You can’t perform that action at this time.
0 commit comments