Fix chapter -> full -> chapter not saving times

This commit is contained in:
Ajay
2022-09-03 21:28:02 -04:00
parent 97af12416e
commit e81ff66dd3

View File

@@ -477,7 +477,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
}
this.previousSkipType = ActionType.Full;
} else if ((category === "chooseACategory" || (CompileConfig.categorySupport[category]?.includes(ActionType.Skip)
} else if ((category === "chooseACategory" || ((CompileConfig.categorySupport[category]?.includes(ActionType.Skip)
|| CompileConfig.categorySupport[category]?.includes(ActionType.Chapter))
&& ![ActionType.Poi, ActionType.Full].includes(this.getNextActionType(category, actionType))))
&& this.previousSkipType !== ActionType.Skip) {
if (this.timesBeforeChanging[0]) {