fix: reset send view onDidMount

This commit is contained in:
George Lima 2019-01-10 15:16:23 -03:00
parent 34314d766a
commit a4b6dbb34b
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ const initialState = {
export class SendView extends PureComponent<Props, State> {
state = initialState;
componentDidMount() {
const { resetSendView } = this.props;
resetSendView();
}
handleChange = (field: string) => (value: string) => {
this.setState(() => ({
[field]: value,