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()
|
||||
|
||||
return useSWR(
|
||||
address && `chains/${chainConfig.id}/vaults/${address}`,
|
||||
address ? `chains/${chainConfig.id}/vaults/${address}` : `chains/${chainConfig.id}/vaults`,
|
||||
() => getVaults(chainConfig),
|
||||
{
|
||||
suspense,
|
||||
|
Loading…
Reference in New Issue
Block a user