Skip to content

Commit

Permalink
fix: show console name in game profile header if available
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Jun 29, 2021
1 parent 3c75bf3 commit 3c81c12
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ const GameDetails: React.FC<{
console.error(err);
}

const platform = _.get(file.metadata, "playedOn") || "Unknown";
let platform = _.get(file.metadata, "playedOn") || "Unknown";
const consoleNick = _.get(file.metadata, "consoleNick");
if (consoleNick !== "unknown") {
platform = consoleNick || platform;
}

const startAtDisplay = new Date(file.startTime ? Date.parse(file.startTime) : 0);

Expand Down

0 comments on commit 3c81c12

Please sign in to comment.