Permalink
Browse files

Fix yidbon crash

  • Loading branch information...
Jan Kelin
Jan Kelin committed Jan 6, 2019
1 parent 3325a69 commit 4a06c2ab5f2c23135f4f9ff41567527ac72a6624
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/players.ts
@@ -110,7 +110,7 @@ router.get("/player/:name", async function(req, res) {

res.render("player", {
data: data,
persona: personaCount > 0 ? data.normalizedName : null,
persona: (data && personaCount > 0) ? data.normalizedName : null,
relatedNicknames: similar,
relatedNicknamesString: similar && similar.join(", ")
});

0 comments on commit 4a06c2a

Please sign in to comment.