fix(SW-94): update useHash

This commit is contained in:
Chuma McPhoy
2024-08-12 14:21:09 +02:00
parent a38ba188ed
commit e82dcddd5c

View File

@@ -15,7 +15,7 @@ function useHash() {
useEffect(() => {
setIsClient(true)
setHash(getHash())
}, [params])
}, [params, setHash, setIsClient])
return isClient ? hash : null
}