Add more optional chaining
This commit is contained in:
parent
4a0e23a171
commit
3979c108e0
|
@ -30,7 +30,7 @@ export const createBuilderWebsocket = appId => {
|
|||
userStore.actions.removeUser(sessionId)
|
||||
})
|
||||
socket.onOther(BuilderSocketEvent.LockTransfer, ({ userId }) => {
|
||||
if (userId === get(auth)?.user._id) {
|
||||
if (userId === get(auth)?.user?._id) {
|
||||
notifications.success("You can now edit screens and automations")
|
||||
store.update(state => ({
|
||||
...state,
|
||||
|
|
Loading…
Reference in New Issue