fix: Only clear desiredRoom if the room is found (#5398)

This commit is contained in:
Jennifer Richards 2023-03-26 02:03:50 -03:00 committed by GitHub
parent 1388b030ee
commit eb3e3d26a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,10 +187,10 @@ function handleDesiredRoom () {
if (rm) {
state.currentFloor = fl.id
state.currentRoom = rm.id
state.desiredRoom = null
break
}
}
state.desiredRoom = null
}
}