Skip to content

Commit a7bf7d7

Browse files
committed
fix: not automatically getting lock
1 parent eda2e9f commit a7bf7d7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

client/hooks/useLockSync.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ export function useLockSync({
3434
const gotTheLock = lockMap && lockMap[id] && lockMap[id].uid === currentUser.uid
3535
setHasLock(gotTheLock)
3636
if (gettingLock && lockMap?.[id]) setGettingLock(false)
37-
38-
if (!gotTheLock && content !== dataFromRedux) {
39-
setGettingLock(true)
40-
setLock({ room: studyprogrammeKey, field: id })
41-
}
4237
}, [lockMap])
4338

4439
const askForLock = useCallback(() => {

0 commit comments

Comments
 (0)