Skip to content

Commit

Permalink
fix(decorators): set variable value correctly if false (#2285)
Browse files Browse the repository at this point in the history
Fixes #2283
  • Loading branch information
sogehige committed Jun 19, 2019
1 parent bbae8ab commit 33e77c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function settings(category?: string) {
return setTimeout(() => loadVariableValue(), 1000);
}
self.loadVariableValue(key).then((value) => {
if (value) {
if (typeof value !== 'undefined') {
VariableWatcher.add(`${type}.${name}.${key}`, value); // rewrite value on var load
_.set(self, key, value);
}
Expand Down

0 comments on commit 33e77c0

Please sign in to comment.