fix: fixed the useSWR key for vaults
This commit is contained in:
parent
a6122534b7
commit
a20c52df7a
@ -7,7 +7,7 @@ export default function useVaults(suspense: boolean = true, address?: string) {
|
|||||||
const chainConfig = useChainConfig()
|
const chainConfig = useChainConfig()
|
||||||
|
|
||||||
return useSWR(
|
return useSWR(
|
||||||
address && `chains/${chainConfig.id}/vaults/${address}`,
|
address ? `chains/${chainConfig.id}/vaults/${address}` : `chains/${chainConfig.id}/vaults`,
|
||||||
() => getVaults(chainConfig),
|
() => getVaults(chainConfig),
|
||||||
{
|
{
|
||||||
suspense,
|
suspense,
|
||||||
|
Loading…
Reference in New Issue
Block a user