From 93f82de7fd46608f778fa8904048e52d5fa8ceec Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 4 Apr 2020 23:45:10 -0400 Subject: [PATCH] Moves submission error check into the proper place --- src/background.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/background.ts b/src/background.ts index 77f17fd9..05e884b5 100644 --- a/src/background.ts +++ b/src/background.ts @@ -227,12 +227,12 @@ async function submitTimes(videoID: string, callback) { increasedContributionAmount = true; Config.config.sponsorTimesContributed = Config.config.sponsorTimesContributed + sponsorTimes.length; } - } else if (error) { - callback({ - statusCode: -1 - }); } - } + } else if (error) { + callback({ + statusCode: -1 + }); + } }); } }