Skip to content

Commit

Permalink
Fix getCurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Mar 21, 2021
1 parent 0056bcb commit 08fdff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/steam/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function currency(name: string, currencyId: number, /* [index at pos 0, index at

export function getCurrency(id: number): ICurrency {
for (let obj of Object.keys(CURRENCIES)) {
const currency = CURRENCIES[obj];
if (currency.id === id) {
const currency: ICurrency = CURRENCIES[obj];
if (currency.currencyId === id) {
return currency;
}
}
Expand Down

0 comments on commit 08fdff4

Please sign in to comment.