diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js index d67b3cb3c8d364bfd54b0baa43020e982cccd7b1..cc7b16373666de42c4cb74a18187364f0d2908b6 100644 --- a/packages/desktop-client/src/components/accounts/Account.js +++ b/packages/desktop-client/src/components/accounts/Account.js @@ -216,6 +216,11 @@ class AccountInternal extends PureComponent { } componentDidUpdate(prevProps) { + // If the active account changes - close the transaction entry mode + if (this.state.isAdding && this.props.accountId !== prevProps.accountId) { + this.setState({ isAdding: false }); + } + // If the user was on a different screen and is now coming back to // the transactions, automatically refresh the transaction to make // sure we have updated state diff --git a/upcoming-release-notes/1305.md b/upcoming-release-notes/1305.md new file mode 100644 index 0000000000000000000000000000000000000000..23d1760dba9a7c9e865e7e21053e3b081151911e --- /dev/null +++ b/upcoming-release-notes/1305.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [MatissJanis] +--- + +Close the "add transaction" entry mode when switching between accounts