From e6b66574527d369ac9e618d14fe034a5929dc59e Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 26 Aug 2026 21:10:27 +0100 Subject: [PATCH] Bug Fix: Set default and base currency with string argument on select --- addon/controllers/settings/accounting.js | 2 +- addon/controllers/settings/invoice.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/controllers/settings/accounting.js b/addon/controllers/settings/accounting.js index 3270e84..810303a 100644 --- a/addon/controllers/settings/accounting.js +++ b/addon/controllers/settings/accounting.js @@ -144,7 +144,7 @@ export default class SettingsAccountingController extends Controller { @action onSelectCurrency(currency) { // CurrencySelect passes the full currency object; store the ISO code. // Clearing the selection (null/undefined) resets to company default. - this.base_currency = currency?.code ?? null; + this.base_currency = currency ?? null; } @action onSelectFiscalYearMonth(option) { diff --git a/addon/controllers/settings/invoice.js b/addon/controllers/settings/invoice.js index 873e2b1..d76b617 100644 --- a/addon/controllers/settings/invoice.js +++ b/addon/controllers/settings/invoice.js @@ -138,7 +138,7 @@ export default class SettingsInvoiceController extends Controller { @action onSelectCurrency(currency) { // CurrencySelect passes the full currency object; store the ISO code. // Clearing the selection (null/undefined) resets to company default. - this.default_currency = currency?.code ?? null; + this.default_currency = currency ?? null; } @action onSelectPaymentTerms(option) {