Fix chapters not saving after clicking suggestion

They still submitted properly, it only mattered if you closed the submission box
This commit is contained in:
Ajay
2023-05-21 19:55:58 -04:00
parent b07381e5d0
commit 20ab0768df

View File

@@ -686,13 +686,13 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
descriptionUpdate(description: string): void {
this.setState({
description
}, () => {
this.saveEditTimes();
});
if (!this.fetchingSuggestions) {
this.fetchSuggestions(description);
}
this.saveEditTimes();
}
async fetchSuggestions(description: string): Promise<void> {