Skip to content

Commit 62fadf2

Browse files
committed
fix conditional message
1 parent 8fa1f68 commit 62fadf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/src/epic_games.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ function format_message(game) {
130130
name: `${game.start_date == null ? now_text : coming_soon_text}`,
131131
value: `${game.start_date == null ? game.end_date : game.start_date}`
132132
},
133-
...(game.url_slug != "error" && {
133+
...(game.url_slug != "error" ? [{
134134
name: '',
135135
value: `[Open in Epic Launcher](${redirect_base + game.url_slug})`
136-
}),
136+
}] : []),
137137
],
138138
},
139139
];

0 commit comments

Comments
 (0)