From baefc7802168db17108eb5949963e30eb44f703d Mon Sep 17 00:00:00 2001 From: Vann-Dev Date: Sun, 5 May 2024 22:50:00 +0700 Subject: [PATCH] fix: build --- app/dashboard/account/layout.tsx | 2 +- app/dashboard/admin/page.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dashboard/account/layout.tsx b/app/dashboard/account/layout.tsx index 8bee5d9..11bb4fa 100644 --- a/app/dashboard/account/layout.tsx +++ b/app/dashboard/account/layout.tsx @@ -31,7 +31,7 @@ export default function Layout({ } }); } - }, []) + }, [fetched, router]) if (!userData) { return ( diff --git a/app/dashboard/admin/page.tsx b/app/dashboard/admin/page.tsx index 35e5908..d03deb5 100644 --- a/app/dashboard/admin/page.tsx +++ b/app/dashboard/admin/page.tsx @@ -43,7 +43,7 @@ export default function Page() { } }); } - }, []) + }, [fetched, router]) function addAccount() { setAddDialogOpen(true); @@ -118,7 +118,7 @@ export default function Page() { {accountsData?.data.map((account) => ( - + {account.id} {account.email} {new Date(account.createdAt).toLocaleString()}