Skip to content

Commit

Permalink
Clear the preview when re-downloading models
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Dec 23, 2024
1 parent 1d9ffea commit 6e18fbd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const useVoiceTyping = ({ locale, provider, onSetPreview, onText }: UseVoiceTypi
useAsyncEffect(async (event: AsyncEffectEvent) => {
try {
await voiceTypingRef.current?.stop();
onSetPreviewRef.current?.('');

setModelIsOutdated(await builder.isDownloadedFromOutdatedUrl());

Expand Down

0 comments on commit 6e18fbd

Please sign in to comment.