Skip to content
Snippets Groups Projects
Unverified Commit cc497b29 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: changing pages while adding a transaction (#1305)

parent 8d112d2e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
---
category: Bugfix
authors: [MatissJanis]
---
Close the "add transaction" entry mode when switching between accounts
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment