Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Oct 20, 2023
1 parent f5a3470 commit 1b67c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/pile-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ export function getMerchantModifiersForActor(merchant, {

function getSmallestExchangeRate(currencies) {
return currencies.length > 1
? Math.min(...currencies.filter(currency => currency.primary).map(currency => currency.exchangeRate))
? Math.min(...currencies.filter(currency => !currency.secondary).map(currency => currency.exchangeRate))
: (Helpers.getSetting(SETTINGS.CURRENCY_DECIMAL_DIGITS) ?? 0.00001);
}

Expand Down

0 comments on commit 1b67c6e

Please sign in to comment.