Skip to content

Commit

Permalink
fix: fix bugs (ZuodaoTech#218) & (ZuodaoTech#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
PercyAtFj committed Jan 30, 2024
1 parent 58dcd15 commit d061a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions enjoy/src/renderer/components/medias/media-caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ export const MediaCaption = (props: {
{displayIpa &&
ipa.find(
(i) =>
i.word.trim() === w.text.replace(/[\.,?!]/g, "").trim()
i.word.trim() === w.text.replace(/[\.",?!]/g, "").trim()
)?.ipa && (
<div className="text-sm text-foreground/70 font-serif">
{
ipa.find(
(i) =>
i.word.trim() ===
w.text.replace(/[\.,?!]/g, "").trim()
w.text.replace(/[\.",?!]/g, "").trim()
)?.ipa
}
</div>
Expand Down
2 changes: 1 addition & 1 deletion enjoy/src/renderer/components/medias/media-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const MediaPlayer = (props: {
const index = transcriptionResult.findIndex(
(t) => time >= t.offsets.from && time < t.offsets.to
);

if (index === -1) return;
setCurrentSegmentIndex(index);
};

Expand Down

0 comments on commit d061a11

Please sign in to comment.