Skip to content

Commit 71b2523

Browse files
committed
Show historical low price even if no cut
1 parent 229f893 commit 71b2523

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/structures/DealsEmbed.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ export default class DealsEmbed extends BasicEmbed {
135135
}
136136

137137
const free = `FREE from ${historicalLow.shop.name}`;
138+
const price = `${toCurrency(historicalLow.price.amount)} from ${
139+
historicalLow.shop.name
140+
}`;
138141
const priceCut = `${toCurrency(historicalLow.price.amount)} (-${
139142
historicalLow.cut
140143
}%) from ${historicalLow.shop.name}`;
@@ -146,7 +149,7 @@ export default class DealsEmbed extends BasicEmbed {
146149
? free
147150
: historicalLow.price.amount < historicalLow.regular.amount
148151
? priceCut
149-
: 'None',
152+
: price,
150153
});
151154
}
152155

0 commit comments

Comments
 (0)