fix: fixed total pending display
This commit is contained in:
@@ -390,7 +390,7 @@ const AdminValidations = () => {
|
|||||||
|
|
||||||
<StatCard
|
<StatCard
|
||||||
title="Total Pending"
|
title="Total Pending"
|
||||||
value={loading ? '-' : pendingUsers.length}
|
value={loading ? '-' : pendingUsers.filter(user => ['pending_email', 'pending_validation', 'pre_validated', 'payment_pending',].includes(user.status)).length}
|
||||||
icon={Users}
|
icon={Users}
|
||||||
iconBgClass="text-brand-purple"
|
iconBgClass="text-brand-purple"
|
||||||
dataTestId="stat-total-users"
|
dataTestId="stat-total-users"
|
||||||
|
|||||||
Reference in New Issue
Block a user