Skip to content

Commit

Permalink
check if var is undefined (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch authored May 11, 2024
1 parent 0fee204 commit 211763f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/modules/nostr/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const orderToTags = async order => {
Math.floor(Date.now() / 1000) +
parseInt(process.env.ORDER_PUBLISHED_EXPIRATION_WINDOW);
let fiat_amount = order.fiat_amount;
if (order.amount === 0) {
if (order.fiat_amount === undefined) {
fiat_amount = `${order.min_amount}-${order.max_amount}`;
}
const tags = [];
Expand Down

0 comments on commit 211763f

Please sign in to comment.