aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcaneleex <[email protected]>2022-11-06 19:15:59 +0100
committercaneleex <[email protected]>2022-11-06 19:15:59 +0100
commit3c6989f67d7846627cd3e530f4c3ec6ec36ae77a (patch)
treee12577ade29d344b47eb62e4f518e04bd8b8ed01
parentb40749717fd666cf55d4a7270837ed21c5ed512b (diff)
downloadSponsorBlock-3c6989f67d7846627cd3e530f4c3ec6ec36ae77a.tar.gz
SponsorBlock-3c6989f67d7846627cd3e530f4c3ec6ec36ae77a.zip
Don't overwrite endcards time upon submitting
-rw-r--r--src/components/SponsorTimeEditComponent.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx
index d05c34fa..84b69cbf 100644
--- a/src/components/SponsorTimeEditComponent.tsx
+++ b/src/components/SponsorTimeEditComponent.tsx
@@ -595,7 +595,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
this.props.contentContainer().updateEditButtonsOnPlayer();
}
}
- } else if (this.state.sponsorTimeEdits[1] === null && category === "outro") {
+ } else if (this.state.sponsorTimeEdits[1] === null && category === "outro" && !sponsorTimesSubmitting[this.props.index].segment[1]) {
sponsorTimesSubmitting[this.props.index].segment[1] = this.props.contentContainer().v.duration;
this.props.contentContainer().updateEditButtonsOnPlayer();
}