Skip to content

Commit

Permalink
Fixed auto-completion in custom token and nft form
Browse files Browse the repository at this point in the history
  • Loading branch information
muliswilliam committed Oct 5, 2022
1 parent 6e52fe9 commit c95d1ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/brave_wallet_ui/common/hooks/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function useTokenInfo (
}).catch(e => console.log(e))
}
setFoundTokenInfoByContractAddress(undefined)
}, [tokenContractAddress, visibleTokens, fullTokenList])
}, [tokenContractAddress, visibleTokens, fullTokenList, selectedNetwork])
return {
onFindTokenInfoByContractAddress: setTokenContractAddress,
foundTokenInfoByContractAddress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const AddCustomTokenForm = (props: Props) => {
const {
onFindTokenInfoByContractAddress,
foundTokenInfoByContractAddress
} = useTokenInfo(getBlockchainTokenInfo, userVisibleTokensInfo, fullTokenList, selectedNetwork)
} = useTokenInfo(getBlockchainTokenInfo, userVisibleTokensInfo, fullTokenList, customAssetsNetwork || selectedNetwork)
const {
onAddCustomAsset
} = useAssetManagement()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const AddNftForm = (props: Props) => {
const {
onFindTokenInfoByContractAddress,
foundTokenInfoByContractAddress
} = useTokenInfo(getBlockchainTokenInfo, userVisibleTokensInfo, fullTokenList, selectedNetwork)
} = useTokenInfo(getBlockchainTokenInfo, userVisibleTokensInfo, fullTokenList, customAssetsNetwork || selectedNetwork)
const {
onAddCustomAsset
} = useAssetManagement()
Expand Down

0 comments on commit c95d1ef

Please sign in to comment.