Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dongle/app/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function AdminDashboard() {
// Load reports, reviews, and moderation log
useEffect(() => {
if (!isAdmin) return;
const id = setTimeout(() => {
const id = setTimeout(async () => {
setReports(reviewReportService.getReports());
setProjectReports(projectReportService.getReports());
setClaimRequests(projectClaimService.getRequests());
Expand Down Expand Up @@ -843,7 +843,7 @@ export default function AdminDashboard() {
No pending reports
</p>
<p className="text-sm text-zinc-400 dark:text-zinc-500 mt-1">
All reviews are currently in good standing.
All reviews and projects are currently in good standing.
</p>
</div>
) : (
Expand Down
3 changes: 2 additions & 1 deletion dongle/components/projects/ProjectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ export default function ProjectForm({
useEffect(() => {
if (draft.loadedDraft) {
setDraftRestored(true);
reset(draft.loadedDraft);
}
}, [draft.loadedDraft]);
}, [draft.loadedDraft]); // eslint-disable-line react-hooks/exhaustive-deps

useUnsavedChanges(isDirty, isSubmitting);

Expand Down