We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eda2e9f commit a7bf7d7Copy full SHA for a7bf7d7
client/hooks/useLockSync.ts
@@ -34,11 +34,6 @@ export function useLockSync({
34
const gotTheLock = lockMap && lockMap[id] && lockMap[id].uid === currentUser.uid
35
setHasLock(gotTheLock)
36
if (gettingLock && lockMap?.[id]) setGettingLock(false)
37
-
38
- if (!gotTheLock && content !== dataFromRedux) {
39
- setGettingLock(true)
40
- setLock({ room: studyprogrammeKey, field: id })
41
- }
42
}, [lockMap])
43
44
const askForLock = useCallback(() => {
0 commit comments