From 1b67c6e6878a12a6b4187bfaa7bac312f4e516e3 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Fri, 20 Oct 2023 12:26:44 +0100 Subject: [PATCH] Fixed --- src/helpers/pile-utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/pile-utilities.js b/src/helpers/pile-utilities.js index e54e3edf..e6dff4b9 100644 --- a/src/helpers/pile-utilities.js +++ b/src/helpers/pile-utilities.js @@ -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); }