Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
fix(array): fixed bug with game names not allowing mixed or upper cas…
Browse files Browse the repository at this point in the history
…e inputs
  • Loading branch information
animafps committed Oct 12, 2021
1 parent 7e8490d commit e33cdac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export function getObject(
game: string,
object: 'yaw' | 'aliases' | 'film' | 'name'
) {
const value = map.get(game) ?? aliasesMap.get(game)
const value =
map.get(game.toLowerCase()) ?? aliasesMap.get(game.toLowerCase())
return value ? value[object] ?? null : null
}

0 comments on commit e33cdac

Please sign in to comment.