Skip to content
This repository was archived by the owner on Aug 20, 2022. It is now read-only.

Commit 74a5b39

Browse files
committed
fix: can not get balance when token symbol contains lowercase letters
1 parent 1b6a2a7 commit 74a5b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export const getTokenBySymbolAsync = async (symbol) => {
261261
if (!symbol || !_.isString(symbol)) throw JSSDK_ERRORS.PARAMS_ERROR
262262

263263
const tokenList = await getCachedTokenList()
264-
const token = tokenList.find(t => t.symbol === symbol.toUpperCase())
264+
const token = tokenList.find(t => t.symbol.toUpperCase() === symbol.toUpperCase())
265265

266266
if (!token) throw JSSDK_ERRORS.TOKEN_NOT_FOUND
267267

0 commit comments

Comments
 (0)