Skip to content

Commit

Permalink
Merge pull request #1910 from getAlby/zero-amount
Browse files Browse the repository at this point in the history
chore: always prompt for zero amount invoices
  • Loading branch information
bumi authored Dec 22, 2022
2 parents 64a864e + f532d31 commit 36a050f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const sendPaymentOrPrompt = async (message: Message) => {
};

async function checkAllowance(host: string, amount: number) {
// if it is a 0 amount invoice we return false and prompt
if (amount <= 0) {
return false;
}
const allowance = await db.allowances
.where("host")
.equalsIgnoreCase(host)
Expand Down

0 comments on commit 36a050f

Please sign in to comment.