* move transaction reset to componentWillMount

* revert initialState change
This commit is contained in:
Danny Skubak 2018-06-11 17:53:49 -04:00 committed by Daniel Ternyak
parent d75cd5ccdb
commit c21d520422
1 changed files with 6 additions and 1 deletions

View File

@ -68,9 +68,14 @@ class TXMetaDataPanel extends React.Component<Props, State> {
sliderState: (this.props as DefaultProps).initialState
};
public componentDidMount() {
public componentWillMount() {
if (!this.props.offline) {
this.props.resetTransactionRequested();
}
}
public componentDidMount() {
if (!this.props.offline) {
this.props.fetchCCRates([this.props.network.unit]);
this.props.getNonceRequested();
}