Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/meteor/client/hooks/menuActions/useLeaveRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ export const useLeaveRoomAction = ({ rid, type, name, roomOpen }: LeaveRoomProps
};

const warnText = roomCoordinator.getRoomDirectives(type).getUiText(UiTextContext.LEAVE_WARNING);
const translatedText = t(warnText as TranslationKey);
const finalText = translatedText.replace('%s', name);

setModal(
<WarningModal
text={t(warnText as TranslationKey, name)}
text={t(finalText)}
confirmText={t('Leave_room')}
close={() => setModal(null)}
cancelText={t('Cancel')}
Expand Down