diff --git a/frontend/app/ui/room/ban-item.tsx b/frontend/app/ui/room/ban-item.tsx
index d001fc96..9de2414a 100644
--- a/frontend/app/ui/room/ban-item.tsx
+++ b/frontend/app/ui/room/ban-item.tsx
@@ -26,9 +26,9 @@ export default function BanItem({
const router = useRouter();
const [isClicked, setIsClicked] = useState(false);
- const onBan = async (userId: number) => {
+ const ban = async () => {
setIsClicked(true);
- const result = await banUser(roomId, userId);
+ const result = await banUser(roomId, user.id);
if (result === "Success") {
router.refresh();
} else {
@@ -48,7 +48,7 @@ export default function BanItem({
{isClicked && }
{!isClicked && (