replace sol logo
This commit is contained in:
parent
95a165fc67
commit
7a736158f7
|
@ -1,4 +1,5 @@
|
|||
import { Group } from '@blockworks-foundation/mango-v4'
|
||||
import { WRAPPED_SOL_MINT } from '@project-serum/serum/lib/token-instructions'
|
||||
import { CLUSTER } from '@store/mangoStore'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import useMangoGroup from 'hooks/useMangoGroup'
|
||||
|
@ -41,6 +42,15 @@ const useJupiterMints = (): {
|
|||
}
|
||||
)
|
||||
|
||||
if (res?.data?.mangoTokens.length) {
|
||||
const findSol = res.data.mangoTokens.find(
|
||||
(t) => t.address === WRAPPED_SOL_MINT.toString()
|
||||
)
|
||||
if (findSol) {
|
||||
findSol.logoURI = '/icons/sol.svg'
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
mangoTokens: res?.data?.mangoTokens || [],
|
||||
jupiterTokens: res?.data?.jupiterTokens || [],
|
||||
|
|
Loading…
Reference in New Issue