Commit 0858a483 authored by xiaoye's avatar xiaoye

Update participant.ts

parent 4c3de7b0
......@@ -12,7 +12,8 @@ class Participant {
deck : YGOProDeck | undefined;
constructor(obj: ParticipantObject) {
this.name = obj.name;
let name = obj.name.split('+')
this.name = (name.length == 2 && !Number.isNaN(name[0])) ? name[1] : obj.name;
this.tournamentId = obj.tournamentId;
this.id = obj.id;
this.score = obj.score;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment