diff --git a/main.js b/main.js
index fbcf907..239efbf 100644
--- a/main.js
+++ b/main.js
@@ -16,7 +16,7 @@ $(document).ready(function() {
$.getJSON("/api/public_games", function(data) {
$.each(data, function() {
- $(".games-table").append('
' + this.game_name + ' (' + this.title_id + ') | ' + this.player_count + '/' + this.max_player_count + ' ' + encode(this.players.join(', ')) + ' | ' + this.mode + ' (' + this.status + ') |
');
+ $(".games-table").append(' ' + this.game_name + ' (' + this.title_id + ') | ' + this.player_count + '/' + this.max_player_count + ' ' + this.players.map(player => encode(player)).join(', ') + ' | ' + this.mode + ' (' + this.status + ') |
');
});
});
});
\ No newline at end of file