mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
fix typo option/options - fixes https://github.com/HabitRPG/habitrpg-shared/issues/293
This commit is contained in:
parent
d5c8045ecf
commit
3c8ebf96d7
1 changed files with 1 additions and 1 deletions
|
|
@ -984,7 +984,7 @@ api.wrap = (user, main=true) ->
|
|||
###
|
||||
randomVal: (obj, options) ->
|
||||
array = if options?.key then _.keys(obj) else _.values(obj)
|
||||
rand = user.fns.predictableRandom(option?.seed)
|
||||
rand = user.fns.predictableRandom(options?.seed)
|
||||
array[Math.floor(rand * array.length)]
|
||||
|
||||
###
|
||||
|
|
|
|||
Loading…
Reference in a new issue