Skip to content

Commit

Permalink
send coin fix var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
pbca26 committed Mar 10, 2022
1 parent b758960 commit 5d8f531
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SendCoinButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ class SendCoinButton extends React.Component {
if (!isUserInputValid) {
const {coin} = this.props;
let currentAction = 'connect';
let tiptime;

try {
if (coin === 'KMD') {
let tiptime = await blockchain[blockchainAPI].getTipTime();
tiptime = await blockchain[blockchainAPI].getTipTime();
tiptime = this.props.checkTipTime(tiptime);
if (!tiptime) throw new Error('Unable to get tiptime!');
}
Expand Down

0 comments on commit 5d8f531

Please sign in to comment.