Skip to content

Commit

Permalink
fix: process type may not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Sep 28, 2022
1 parent 865edc6 commit eb44846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/widget/src/hooks/useProcessMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ export function getProcessMessage(
}
return { title, message };
}
const title = processMessages[process.type][process.status]?.(t);
const title = processMessages[process.type]?.[process.status]?.(t);
return { title };
}

0 comments on commit eb44846

Please sign in to comment.