Moves submission error check into the proper place

This commit is contained in:
Ajay Ramachandran
2020-04-04 23:45:10 -04:00
parent f6945b56d8
commit 93f82de7fd

View File

@@ -227,12 +227,12 @@ async function submitTimes(videoID: string, callback) {
increasedContributionAmount = true; increasedContributionAmount = true;
Config.config.sponsorTimesContributed = Config.config.sponsorTimesContributed + sponsorTimes.length; Config.config.sponsorTimesContributed = Config.config.sponsorTimesContributed + sponsorTimes.length;
} }
}
} else if (error) { } else if (error) {
callback({ callback({
statusCode: -1 statusCode: -1
}); });
} }
}
}); });
} }
} }