From f6945b56d8273fc17e98bfbcac444c88de209af7 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 4 Apr 2020 23:35:44 -0400 Subject: [PATCH] Fixed submitted sponsors and prevented preview sponsors from being voted on --- src/background.ts | 2 +- src/components/SponsorTimeEditComponent.tsx | 2 +- src/content.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/background.ts b/src/background.ts index c3a08f43..77f17fd9 100644 --- a/src/background.ts +++ b/src/background.ts @@ -184,7 +184,7 @@ function submitVote(type, UUID, callback) { }); } -async function submitTimes(videoID, callback) { +async function submitTimes(videoID: string, callback) { //get the video times from storage let sponsorTimes = Config.config.sponsorTimes.get(videoID); let userID = Config.config.userID; diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 118bd074..5bd59fa9 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -248,7 +248,7 @@ class SponsorTimeEditComponent extends React.Component