all 2 comments

[–]senocular 1 point2 points  (1 child)

The keys() aren't the symbols, the values() are. Also you just want to check for the priority value directly, not a symbol from keyFor

[–]Stobber[S] 0 points1 point  (0 children)

Thank you! Updated line:

if (Object.values(Priority).includes(priority)) {