Skip to content

Commit 770add9

Browse files
fix null bug crashing store cmd
1 parent 40f03a1 commit 770add9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/store/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function store (interaction: CommandInteraction) {
7474
embed.addFields(
7575
{
7676
name: 'Price',
77-
value: emojiUtils.brick + ' ' + data.price.toLocaleString(),
77+
value: data.price ? `${emojiUtils.brick} ${data.price.toLocaleString()}` : 'Off-sale',
7878
inline: true
7979
},
8080
{

0 commit comments

Comments
 (0)