From 76fe78b48dd4dd220466805ffea6a762c812975a Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 20 Sep 2017 20:14:01 -0400 Subject: [PATCH] AccountsTab: Only update 'OFX Account Type' field if it exists --- js/components/AccountsTab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/components/AccountsTab.js b/js/components/AccountsTab.js index 5934414..cebdae6 100644 --- a/js/components/AccountsTab.js +++ b/js/components/AccountsTab.js @@ -110,12 +110,16 @@ class AddEditAccountModal extends React.Component { ofxuser: ReactDOM.findDOMNode(this.refs.ofxuser).value, ofxbankid: ReactDOM.findDOMNode(this.refs.ofxbankid).value, ofxacctid: ReactDOM.findDOMNode(this.refs.ofxacctid).value, - ofxaccttype: ReactDOM.findDOMNode(this.refs.ofxaccttype).value, ofxclientuid: ReactDOM.findDOMNode(this.refs.ofxclientuid).value, ofxappid: ReactDOM.findDOMNode(this.refs.ofxappid).value, ofxappver: ReactDOM.findDOMNode(this.refs.ofxappver).value, ofxversion: ReactDOM.findDOMNode(this.refs.ofxversion).value, }); + if (this.state.type != AccountType.Investment) { + this.setState({ + ofxaccttype: ReactDOM.findDOMNode(this.refs.ofxaccttype).value, + }); + } } handleNoIndentClick() {