fix: approval warning showing incorrectly on admin panel

This commit is contained in:
Mar0xy 2023-11-01 13:56:14 +01:00 committed by kakkokari-gtyih
parent 9606165b7c
commit b0ead7d1ef
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ os.api('admin/abuse-user-reports', {
os.api('admin/show-users', {
state: 'approved',
origin: 'local',
limit: 1,
}).then(approvals => {
if (approvals.length > 0) pendingUserApprovals.value = true;