diff --git a/app/(protected)/dashboard/records/record-list.tsx b/app/(protected)/dashboard/records/record-list.tsx index e22160b..4767592 100644 --- a/app/(protected)/dashboard/records/record-list.tsx +++ b/app/(protected)/dashboard/records/record-list.tsx @@ -118,6 +118,9 @@ export default function UserRecordsList({ user, action }: RecordListProps) { if (res.ok) { const data = await res.json(); if (data === "Target is accessible!") { + if (!originalState) { + setChecked(originalState); + } toast.success(data); } else { setChecked(originalState);