Add category pill right away

Fix #1199
This commit is contained in:
Ajay
2022-02-22 01:01:27 -05:00
parent d6a0029b85
commit 6e23650a99

View File

@@ -1934,6 +1934,11 @@ async function sendSubmitMessage() {
sponsorTimesSubmitting = [];
updatePreviewBar();
const fullVideoSegment = sponsorTimes.filter((time) => time.actionType === ActionType.Full)[0];
if (fullVideoSegment) {
categoryPill?.setSegment(fullVideoSegment);
}
} else {
// Show that the upload failed
playerButtons.submit.button.style.animation = "unset";