--- a/web/src/negate.js +++ b/web/src/negate.js @@ -1,4 +1,3 @@ export function pick(ok, a, b) { - if (!ok) return a - else return b + if (ok) return b else return a }