diff --git a/app/(dashboard)/devices/page.tsx b/app/(dashboard)/devices/page.tsx index cf5d016..5edb765 100644 --- a/app/(dashboard)/devices/page.tsx +++ b/app/(dashboard)/devices/page.tsx @@ -1,4 +1,3 @@ -import { redirect } from "next/navigation"; import { getServerSession } from "next-auth"; import { Suspense } from "react"; import { authOptions } from "@/app/auth"; diff --git a/components/block-device-dialog.tsx b/components/block-device-dialog.tsx index 209db18..365e692 100644 --- a/components/block-device-dialog.tsx +++ b/components/block-device-dialog.tsx @@ -7,7 +7,6 @@ import { useState } from "react"; import { type SubmitHandler, useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; -import { blockDevice as BlockDeviceFromOmada } from "@/actions/omada-actions"; import { Button } from "@/components/ui/button"; import { Dialog, @@ -70,7 +69,7 @@ export default function BlockDeviceDialog({ return (
- {device.blocked ? ( + {device.blocked && !admin ? (