From 4132d4b5f862fee9677e0a542f52c83f759db38d Mon Sep 17 00:00:00 2001 From: oiov Date: Wed, 6 Nov 2024 17:40:08 +0800 Subject: [PATCH] upd --- app/(protected)/dashboard/records/record-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(protected)/dashboard/records/record-list.tsx b/app/(protected)/dashboard/records/record-list.tsx index 4767592..df27fd9 100644 --- a/app/(protected)/dashboard/records/record-list.tsx +++ b/app/(protected)/dashboard/records/record-list.tsx @@ -118,7 +118,7 @@ export default function UserRecordsList({ user, action }: RecordListProps) { if (res.ok) { const data = await res.json(); if (data === "Target is accessible!") { - if (!originalState) { + if (originalState) { setChecked(originalState); } toast.success(data);