Skip to content

Commit

Permalink
fix(suite): Fix graph rates (#13496)
Browse files Browse the repository at this point in the history
(cherry picked from commit 17ad51c)
  • Loading branch information
jvaclavik authored and MiroslavProchazka committed Jul 25, 2024
1 parent 2236a35 commit 19fd64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/suite/src/utils/wallet/graph/utilsWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const calcFiatValueMap = (
): { [k: string]: string | undefined } => {
const fiatValueMap: { [k: string]: string | undefined } = {};
Object.keys(rates).forEach(fiatSymbol => {
fiatValueMap[fiatSymbol] = toFiatCurrency(amount, rates?.['usd']) ?? '0';
fiatValueMap[fiatSymbol] = toFiatCurrency(amount, rates?.[fiatSymbol]) ?? '0';
});

return fiatValueMap;
Expand Down

0 comments on commit 19fd64f

Please sign in to comment.