Skip to content

Commit

Permalink
Correctly check for inverse not being true
Browse files Browse the repository at this point in the history
  • Loading branch information
Pewtro committed Sep 15, 2024
1 parent d2bd5cc commit 5d3f261
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function spellAvailable(
}
},
validate: (state, _event) =>
state === null || state.isAvailable || (inverse && !state.isAvailable),
state === null || (!inverse && state.isAvailable) || (inverse && !state.isAvailable),
describe: (tense) => (
<>
<SpellLink spell={spell.id} /> {tenseAlt(tense, 'is', 'was')} {inverse ? 'on' : 'off'}{' '}
Expand Down

0 comments on commit 5d3f261

Please sign in to comment.