Fix votes appearing for unsubmitted segments

This commit is contained in:
Ajay
2022-09-05 00:14:23 -04:00
parent 4c568212ac
commit 3316072f5d
2 changed files with 5 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ export class ChapterVote {
setVisibility(show: boolean): void {
const newState = {
show,
...(!show ? { segment: null } : {})
};
if (this.ref.current) {