Skip to content

Commit

Permalink
Switch order of conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
slaymance committed Feb 4, 2021
1 parent 901077f commit ed150d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/dnd-character/dnd-character.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Character {
constructor() {
return new Proxy(this, {
get(character, stat) {
if (Character.STATS.includes(stat) && !Reflect.has(...arguments))
if (!Reflect.has(...arguments) && Character.STATS.includes(stat))
Reflect.set(character, stat, Character.rollAbility());

return Reflect.get(...arguments);
Expand Down

0 comments on commit ed150d1

Please sign in to comment.