Skip to content

Commit

Permalink
[frontend] Fix change access level in setting modal window (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
lim396 authored Jan 17, 2024
1 parent 25d89ab commit 4136ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/app/ui/room/setting-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ export default function SettingModal({
throw new Error("not found room");
}
let result;
if (room.accessLevel !== "PROTECTED" && e.password === "") {
result = await updateRoom(e.roomName, room.id, room.accessLevel);
if (e.selectedAccessLevel !== "PROTECTED") {
result = await updateRoom(e.roomName, room.id, e.selectedAccessLevel);
} else {
result = await updateRoom(
e.roomName,
room.id,
room.accessLevel,
e.selectedAccessLevel,
e.password,
);
}
Expand Down

0 comments on commit 4136ca2

Please sign in to comment.