Browse Source

auto-close claim interest modal on success, reset state

v0.25
pbca26 7 years ago
parent
commit
cb757d2194
  1. 14
      react/src/components/dashboard/claimInterestModal/claimInterestModal.js

14
react/src/components/dashboard/claimInterestModal/claimInterestModal.js

@ -194,11 +194,7 @@ class ClaimInterestModal extends React.Component {
false false
) )
); );
this.setState({ this.closeModal();
transactionsList: [],
isLoading: false,
totalInterest: 0,
});
} }
}); });
} }
@ -264,6 +260,7 @@ class ClaimInterestModal extends React.Component {
false false
) )
); );
this.closeModal();
} }
}); });
} }
@ -348,7 +345,14 @@ class ClaimInterestModal extends React.Component {
closeModal() { closeModal() {
this.setState({ this.setState({
isLoading: true,
transactionsList: [],
showZeroInterest: true,
totalInterest: 0,
spvPreflightSendInProgress: false,
spvVerificationWarning: false,
addressses: {}, addressses: {},
addressSelectorOpen: false,
selectedAddress: null, selectedAddress: null,
}); });
Store.dispatch(toggleClaimInterestModal(false)); Store.dispatch(toggleClaimInterestModal(false));

Loading…
Cancel
Save