Skip to content

Commit

Permalink
add check for empty array in transcript popover
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
antonbuks committed Jul 18, 2024
1 parent 5b3b82e commit b5e03da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function VoiceMessageAttachmentPlayer(props: Props) {
if (result.text) {
setTranscript(result.text.trim());
}
setTranscriptDatas(result);
if (!Array.isArray(result)) {
setTranscriptDatas(result);
}
setHasFetchedTranscript(true);
}
};
Expand Down

0 comments on commit b5e03da

Please sign in to comment.