mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	Clear state on new account creation Modal when exited
This commit is contained in:
		@@ -66,6 +66,7 @@ const NewAccountModal = React.createClass({
 | 
				
			|||||||
	handleCancel: function() {
 | 
						handleCancel: function() {
 | 
				
			||||||
		if (this.props.onCancel != null)
 | 
							if (this.props.onCancel != null)
 | 
				
			||||||
			this.props.onCancel();
 | 
								this.props.onCancel();
 | 
				
			||||||
 | 
							this.setState(this.getInitialState());
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	handleChange: function() {
 | 
						handleChange: function() {
 | 
				
			||||||
		this.setState({
 | 
							this.setState({
 | 
				
			||||||
@@ -96,6 +97,7 @@ const NewAccountModal = React.createClass({
 | 
				
			|||||||
		a.Type = this.state.type;
 | 
							a.Type = this.state.type;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		this.handleSaveSettings(a);
 | 
							this.handleSaveSettings(a);
 | 
				
			||||||
 | 
							this.setState(this.getInitialState());
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	handleSaveSettings: function(account) {
 | 
						handleSaveSettings: function(account) {
 | 
				
			||||||
		if (this.props.onSubmit != null)
 | 
							if (this.props.onSubmit != null)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user