Skip to content

Commit

Permalink
Fix bug with scroll problem (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
slavoyar authored Oct 4, 2024
1 parent 64409a5 commit b4eea08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/entities/card/ui/write-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ export const WriteCard: FC<Props> = ({ id, symbols, translation, transcription,
drawingFadeDuration: 0,
})
);

// TODO: Refactor if possible
writers.current[0].quiz({
onComplete: onQuizComplete,
});

return () => {
writers.current.forEach((item) => {
item.target.node.remove();
Expand Down

0 comments on commit b4eea08

Please sign in to comment.