Show request comment (#2525)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-01-20 14:45:43 +07:00
committed by GitHub
parent bea418d46c
commit 42e354f0ff
23 changed files with 311 additions and 142 deletions
@@ -152,7 +152,12 @@
requested: account._id,
status: RequestStatus.Active
},
(res) => (hasRequests = res.filter((p) => !p.approved.includes(account._id)).length > 0)
(res) =>
(hasRequests =
res.filter(
(p) =>
p.requested.filter((a) => a === account._id).length > p.approved.filter((a) => a === account._id).length
).length > 0)
)
onDestroy(