mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix opcFees before data is present (#1353)
This commit is contained in:
parent
97e0921e1e
commit
e77dcaf60a
@ -48,7 +48,7 @@ function MarketMetadataProvider({
|
|||||||
|
|
||||||
const getOpcFeeForToken = useCallback(
|
const getOpcFeeForToken = useCallback(
|
||||||
(tokenAddress: string, chainId: number): string => {
|
(tokenAddress: string, chainId: number): string => {
|
||||||
if (!opcFees) return
|
if (!opcFees) return '0'
|
||||||
|
|
||||||
const opc = opcFees.filter((x) => x.chainId === chainId)[0]
|
const opc = opcFees.filter((x) => x.chainId === chainId)[0]
|
||||||
const isTokenApproved = opc.approvedTokens.includes(tokenAddress)
|
const isTokenApproved = opc.approvedTokens.includes(tokenAddress)
|
||||||
|
Loading…
Reference in New Issue
Block a user