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

Loading…
Cancel
Save