Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emg110 committed Sep 9, 2024
1 parent 1d50202 commit 8f90e86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ function parseOptions(args) {
let asset = args.asset;
let note = args.note;
if (!!label && !!wallet) {
content = "algorand://" + wallet+ "?" + "&label=" + label;
content = "algorand://" + wallet+ "?" + "label=" + label;
} else if (!!asset && !!wallet) {
if (!!note && amount > 0) {
content = "algorand://" + wallet+ "?" + "&amount=" + amount + "&asset=" + asset + "&note=" + note;
content = "algorand://" + wallet+ "?" + "amount=" + amount + "&asset=" + asset + "&note=" + note;
} else if (amount > 0) {
content = "algorand://" + wallet+ "?" + "&amount=" + amount + "&asset=" + asset;
content = "algorand://" + wallet+ "?" + "amount=" + amount + "&asset=" + asset;
} else if (amount === 0) {
content = "algorand://?" + "amount=0" + "&asset=" + asset;
}

} else if (!!note && !!wallet && !!amount) {
content = "algorand://" + wallet+ "?" + "&amount=" + amount + "&note=" + note;
content = "algorand://" + wallet+ "?" + "amount=" + amount + "&note=" + note;
} else if ( !!wallet && !!amount){
content = "algorand://" + wallet+ "?" + "&amount=" + amount;
content = "algorand://" + wallet+ "?" + "amount=" + amount;
}
let options = {
content: content,
Expand Down

0 comments on commit 8f90e86

Please sign in to comment.