Skip to content

Commit d6360e8

Browse files
authored
fix mint name error in raydium pool (#190)
1 parent bfc7ce4 commit d6360e8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

hooks/queries/digitalAssets.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,13 @@ export const useRaydiumAssetsByOwner = (owner: undefined | PublicKey) => {
314314
new BN(0)
315315

316316
const id = x.id
317-
const name = mintA && mintB && id ?
318-
`${mintB}-${mintA} (${id})` :
319-
undefined
317+
318+
const name =
319+
typeof mintA === 'string' &&
320+
typeof mintB === 'string' &&
321+
typeof id === 'string' ?
322+
`${mintB}-${mintA} (${id})` :
323+
undefined
320324

321325
return {
322326
name,

0 commit comments

Comments
 (0)