Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
fix: fix inconsistency with the isOperatorName utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
EndBug authored Jun 25, 2022
1 parent 685ed55 commit 71ea801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const isRankIdV5 = (value: number): value is RankIdV5 =>
Object.keys(RANKS_V5).map(rank => Number(rank)).includes(value);

export const isOperatorName = (value: string): value is OperatorName =>
Object.values(OPERATORS).map(op => op.name).includes(value);
Object.keys(OPERATORS).includes(value);

export const isWeaponTypeIndex = (value: string): value is WeaponTypeIndex =>
Object.keys(WEAPONTYPES).includes(value);
Expand Down

0 comments on commit 71ea801

Please sign in to comment.