Skip to content

Commit

Permalink
fix: remove type check when comparing values
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv committed Jan 4, 2025
1 parent 8665d75 commit 60b9cbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class OptionSet {
}

getOption(value: Value): ?Option {
const option = this.options.find(o => o.value === value);
const option = this.options.find(o => o.value == value);
if (!option) {
log.warn(
errorCreator(OptionSet.errorMessages.OPTION_NOT_FOUND)({ OptionSet: this, value }),
Expand Down

0 comments on commit 60b9cbe

Please sign in to comment.