Commit 81ee40a5 authored by Korko's avatar Korko
Browse files

Fix trailing participant

parent 08d6664c
This diff is collapsed.
......@@ -240,10 +240,12 @@ window.app = new VueAjax({
this.importing = false;
this.resetParticipants();
file.data.forEach(function(participant) {
this.addParticipant(participant[0], participant[1], participant[2]);
if(participant[0] !== '') {
this.addParticipant(participant[0], participant[1], participant[2]);
}
}.bind(this));
if(file.data.length < 3) {
for(var i = 0; i < 3 - file.data.length; i++) {
if(this.participants.length < 3) {
for(var i = 0; i < 3 - this.participants.length; i++) {
this.addParticipant();
}
}
......
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