diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/SubmissionNoticeComponent.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/SubmissionNoticeComponent.tsx b/src/components/SubmissionNoticeComponent.tsx index 6ecd0e84..28703767 100644 --- a/src/components/SubmissionNoticeComponent.tsx +++ b/src/components/SubmissionNoticeComponent.tsx @@ -9,7 +9,7 @@ import NoticeTextSelectionComponent from "./NoticeTextSectionComponent"; import SponsorTimeEditComponent from "./SponsorTimeEditComponent"; import { getGuidelineInfo } from "../utils/constants"; import { exportTimes } from "../utils/exporter"; -import { getVideo } from "../../maze-utils/src/video"; +import { getVideo, isCurrentTimeWrong } from "../../maze-utils/src/video"; export interface SubmissionNoticeProps { // Contains functions and variables from the content script needed by the skip notice @@ -216,6 +216,11 @@ class SubmissionNoticeComponent extends React.Component<SubmissionNoticeProps, S } submit(): void { + if (isCurrentTimeWrong()) { + alert(chrome.i18n.getMessage("submissionFailedServerSideAds")); + return; + } + // save all items for (const ref of this.timeEditRefs) { ref.current.saveEditTimes(); |