Skip to content

A local-first personal finance app

fix checkboxes (#7742)

youngcwd2b50adf3058
diff --git a/packages/desktop-client/src/components/banksync/BankSyncCheckboxOptions.tsx b/packages/desktop-client/src/components/banksync/BankSyncCheckboxOptions.tsx
index 2eec76ba5b..e8460f268a 100644
--- a/packages/desktop-client/src/components/banksync/BankSyncCheckboxOptions.tsx
+++ b/packages/desktop-client/src/components/banksync/BankSyncCheckboxOptions.tsx
@@ -209,27 +209,28 @@ export function BankSyncCheckboxOptions({
</CheckboxOptionWithHelp>
<CheckboxOptionWithHelp
- id="form_import_transactions"
- checked={!importTransactions}
- onChange={() => setImportTransactions(!importTransactions)}
+ id="form_update_dates"
+ checked={updateDates}
+ onChange={() => setUpdateDates(!updateDates)}
+ disabled={!importTransactions}
helpText={t(
- 'Selecting this option will disable importing transactions and only import the account balance for use in reconciliation',
+ 'By enabling this, the transaction date will be overwritten by the one provided by the bank.',
)}
helpMode={helpMode}
>
- <Trans>Investment Account</Trans>
+ <Trans>Update Dates</Trans>
</CheckboxOptionWithHelp>
<CheckboxOptionWithHelp
- id="form_update_dates"
- checked={updateDates}
- onChange={() => setUpdateDates(!updateDates)}
+ id="form_import_transactions"
+ checked={!importTransactions}
+ onChange={() => setImportTransactions(!importTransactions)}
helpText={t(
- 'By enabling this, the transaction date will be overwritten by the one provided by the bank.',
+ 'Selecting this option will disable importing transactions and only import the account balance for use in reconciliation',
)}
helpMode={helpMode}
>
- <Trans>Update Dates</Trans>
+ <Trans>Investment Account</Trans>
</CheckboxOptionWithHelp>
</>
);
diff --git a/upcoming-release-notes/7742.md b/upcoming-release-notes/7742.md
new file mode 100644
index 0000000000..c9624a92c0
--- /dev/null
+++ b/upcoming-release-notes/7742.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [youngcw]
+---
+
+Fix disabled settings of the bank sync options