Skip to content

Commit

Permalink
fix: optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Jan 15, 2025
1 parent 6bd877e commit 0a8b20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MemoriWidget/MemoriWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ const MemoriWidget = ({
userLang: string,
msg?: string
) => {
const emission = state.emission ?? currentDialogState?.emission;
const emission = state?.emission ?? currentDialogState?.emission;

let translatedState = { ...state };
let translatedMsg = null;
Expand Down Expand Up @@ -1924,7 +1924,7 @@ const MemoriWidget = ({
stopListening();

if (preview) return;

if (speakerMuted) {
memoriSpeaking = false;
setMemoriTyping(false);
Expand Down

0 comments on commit 0a8b20c

Please sign in to comment.