Skip to content

Commit

Permalink
fix(chat): add default to switch block
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Jul 11, 2023
1 parent 106a0c9 commit 259f7ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/server/libs/chat/group-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export function translateMessage (lang, info) {
case 'claim_task':
msg = shared.i18n.t('userIsClamingTask', { username: info.user, task: info.task }, lang);
break;

default:
msg = "Error translating party chat. Unknown message type.";

Check failure on line 125 in website/server/libs/chat/group-chat.js

View workflow job for this annotation

GitHub Actions / lint (14.x)

Strings must use singlequote
}

if (!msg.includes('`')) {
Expand Down

0 comments on commit 259f7ef

Please sign in to comment.