Skip to content

A local-first personal finance app

Auto-close the local/nordigen picker modal after creating an account (#1219)

Jed Fox0d636aa04cd9
diff --git a/packages/desktop-client/src/components/modals/CreateLocalAccount.js b/packages/desktop-client/src/components/modals/CreateLocalAccount.js
index b4dd83a4a4..6bcec27c2d 100644
--- a/packages/desktop-client/src/components/modals/CreateLocalAccount.js
+++ b/packages/desktop-client/src/components/modals/CreateLocalAccount.js
@@ -43,7 +43,7 @@ function CreateLocalAccount({ modalProps, actions }) {
setBalanceError(balanceError);
if (!nameError && !balanceError) {
- modalProps.onClose();
+ actions.closeModal();
let id = await actions.createAccount(
name,
toRelaxedNumber(balance),
diff --git a/upcoming-release-notes/1219.md b/upcoming-release-notes/1219.md
new file mode 100644
index 0000000000..9a6b4323c7
--- /dev/null
+++ b/upcoming-release-notes/1219.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [j-f1]
+---
+
+Auto-close the local/nordigen picker modal after creating an account