File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -575,6 +575,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
575575
576576 saveEditTimes ( ) : void {
577577 const sponsorTimesSubmitting = this . props . contentContainer ( ) . sponsorTimesSubmitting ;
578+ const category = this . categoryOptionRef . current . value as Category
578579
579580 if ( this . state . editing ) {
580581 const startTime = GenericUtils . getFormattedTimeToSeconds ( this . state . sponsorTimeEdits [ 0 ] ) ;
@@ -584,9 +585,11 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
584585 if ( startTime !== null && endTime !== null ) {
585586 sponsorTimesSubmitting [ this . props . index ] . segment = [ startTime , endTime ] ;
586587 }
588+ } else if ( this . state . sponsorTimeEdits [ 1 ] === null && category === "outro" ) {
589+ sponsorTimesSubmitting [ this . props . index ] . segment [ 1 ] = this . props . contentContainer ( ) . v . duration ;
590+ this . props . contentContainer ( ) . updateEditButtonsOnPlayer ( ) ;
587591 }
588592
589- const category = this . categoryOptionRef . current . value as Category
590593 sponsorTimesSubmitting [ this . props . index ] . category = category ;
591594
592595 const actionType = this . getNextActionType ( category , this . actionTypeOptionRef ?. current ?. value as ActionType ) ;
You can’t perform that action at this time.
0 commit comments