Fix infinite refresh
This commit is contained in:
parent
47212a1db0
commit
72d66aace9
|
@ -8,7 +8,8 @@ export const useETHUSDOracle = (
|
|||
provider: JsonRpcProvider | undefined,
|
||||
blockTag: BlockTag | undefined
|
||||
) => {
|
||||
const priceMap = useMultipleETHUSDOracle(provider, [blockTag]);
|
||||
const blockTags = useMemo(() => [blockTag], [blockTag]);
|
||||
const priceMap = useMultipleETHUSDOracle(provider, blockTags);
|
||||
|
||||
if (blockTag === undefined) {
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in New Issue