Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dannydeezy committed Apr 26, 2023
1 parent 7b15a17 commit a443d52
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/modals/send-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const SendModal = ({ show, handleModal, utxo, onSale }) => {
try {
if (!window.webln) {
alert(
"Oops looks like you don't have a WebLN compatible browser-extension wallet to make the lightning payment. Try getting Alby from getalby.com"
"Oops looks like you don't have a WebLN compatible browser-extension " +
"wallet to make the lightning payment. Try getting Alby from getalby.com"
);
return;
}
Expand Down Expand Up @@ -82,11 +83,10 @@ const SendModal = ({ show, handleModal, utxo, onSale }) => {
toast.success(`Transaction sent: ${txId}, copied to clipboard`);
navigator.clipboard.writeText(txId);
handleModal();
return true;
return;
} catch (err) {
console.error(err);
toast.error(err);
return null;
}
}

Expand Down Expand Up @@ -115,7 +115,6 @@ const SendModal = ({ show, handleModal, utxo, onSale }) => {
await sendUtxo(boostRequired).catch((err) => {
console.error(err);
alert(err);
return false;
});

// sleep for 1 second to let the tx propagate
Expand Down Expand Up @@ -188,14 +187,12 @@ const SendModal = ({ show, handleModal, utxo, onSale }) => {
</span>
</div>
</div>
{boostRequired ? (
{boostRequired && (
<span>
Sending will require a small lightning payment to boost the utxo value
<br />
<br />
</span>
) : (
<></>
)}
</div>

Expand Down

0 comments on commit a443d52

Please sign in to comment.