From 08fdff462ca07923c93fc9a8ff904923e7a95c59 Mon Sep 17 00:00:00 2001 From: Hazork Date: Sun, 21 Mar 2021 08:07:53 -0300 Subject: [PATCH] Fix getCurrency --- app/src/steam/currency.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/steam/currency.ts b/app/src/steam/currency.ts index 8882a2d..3a8f289 100644 --- a/app/src/steam/currency.ts +++ b/app/src/steam/currency.ts @@ -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; } }