Browse Source

prevent claiming interest if coin is not kmd

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

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

@ -72,6 +72,7 @@ class ClaimInterestModal extends React.Component {
}
claimInterest(address, amount) {
if (this.props.ActiveCoin.coin === 'KMD') {
sendToAddressPromise(
this.props.ActiveCoin.coin,
this.state.transactionsList[0].address,
@ -98,6 +99,7 @@ class ClaimInterestModal extends React.Component {
}
});
}
}
checkTransactionsListLength() {
if (this.state.transactionsList &&
@ -140,7 +142,11 @@ class ClaimInterestModal extends React.Component {
}
render() {
if (coin === 'KMD') {
return ClaimInterestModalRender.call(this);
} else {
return null;
}
}
}

Loading…
Cancel
Save