mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 15:42:27 -05:00
AccountsTab: Only update 'OFX Account Type' field if it exists
This commit is contained in:
parent
d979849213
commit
76fe78b48d
@ -110,12 +110,16 @@ class AddEditAccountModal extends React.Component {
|
|||||||
ofxuser: ReactDOM.findDOMNode(this.refs.ofxuser).value,
|
ofxuser: ReactDOM.findDOMNode(this.refs.ofxuser).value,
|
||||||
ofxbankid: ReactDOM.findDOMNode(this.refs.ofxbankid).value,
|
ofxbankid: ReactDOM.findDOMNode(this.refs.ofxbankid).value,
|
||||||
ofxacctid: ReactDOM.findDOMNode(this.refs.ofxacctid).value,
|
ofxacctid: ReactDOM.findDOMNode(this.refs.ofxacctid).value,
|
||||||
ofxaccttype: ReactDOM.findDOMNode(this.refs.ofxaccttype).value,
|
|
||||||
ofxclientuid: ReactDOM.findDOMNode(this.refs.ofxclientuid).value,
|
ofxclientuid: ReactDOM.findDOMNode(this.refs.ofxclientuid).value,
|
||||||
ofxappid: ReactDOM.findDOMNode(this.refs.ofxappid).value,
|
ofxappid: ReactDOM.findDOMNode(this.refs.ofxappid).value,
|
||||||
ofxappver: ReactDOM.findDOMNode(this.refs.ofxappver).value,
|
ofxappver: ReactDOM.findDOMNode(this.refs.ofxappver).value,
|
||||||
ofxversion: ReactDOM.findDOMNode(this.refs.ofxversion).value,
|
ofxversion: ReactDOM.findDOMNode(this.refs.ofxversion).value,
|
||||||
});
|
});
|
||||||
|
if (this.state.type != AccountType.Investment) {
|
||||||
|
this.setState({
|
||||||
|
ofxaccttype: ReactDOM.findDOMNode(this.refs.ofxaccttype).value,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleNoIndentClick() {
|
handleNoIndentClick() {
|
||||||
|
Loading…
Reference in New Issue
Block a user