Add more optional chaining

This commit is contained in:
Andrew Kingston 2023-06-05 13:56:54 +01:00
parent 4a0e23a171
commit 3979c108e0
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export const createBuilderWebsocket = appId => {
userStore.actions.removeUser(sessionId) userStore.actions.removeUser(sessionId)
}) })
socket.onOther(BuilderSocketEvent.LockTransfer, ({ userId }) => { 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") notifications.success("You can now edit screens and automations")
store.update(state => ({ store.update(state => ({
...state, ...state,