Skip to content

Commit

Permalink
FIX room.friendly_id undefined on room page
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAppDev committed May 17, 2024
1 parent b3c0ad4 commit baab248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/components/rooms/room/forms/ShareRoomForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default function ShareRoomForm({ room }) {
const currentUser = useAuth();

function roomJoinUrl() {
return `${window.location}/${room.friendly_id}/join`;
if (room.friendly_id !== undefined)
return `${window.location}/${room.friendly_id}/join`;
return `${window.location}/join`;
}

function copyInvite() {
Expand Down

0 comments on commit baab248

Please sign in to comment.