fix: approval warning showing incorrectly on admin panel

This commit is contained in:
Mar0xy 2023-11-01 13:56:14 +01:00
parent 9a962e35be
commit a5efe11350
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

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