Fix typo which caused infinite loop
This commit is contained in:
parent
aa351c00d2
commit
547db845be
1 changed files with 3 additions and 2 deletions
|
@ -304,8 +304,9 @@ createUser user = do
|
||||||
vstate <- get
|
vstate <- get
|
||||||
let users = vsUsers vstate
|
let users = vsUsers vstate
|
||||||
next = vsNextUser vstate
|
next = vsNextUser vstate
|
||||||
users' = M.insert next user users'
|
users' = M.insert next user users
|
||||||
put vstate { vsUsers = users', vsNextUser = UserID $ unUserID next + 1 }
|
next' = UserID $ unUserID next + 1
|
||||||
|
put vstate { vsUsers = users', vsNextUser = next' }
|
||||||
saveState
|
saveState
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue