fix: add removed layout guard

This commit is contained in:
Mythie
2023-09-12 17:53:38 +10:00
parent 632b3bd1f4
commit 399826a6f5
2 changed files with 14 additions and 1 deletions

View File

@ -16,6 +16,7 @@ export const getRecipientsStats = async () => {
[SendStatus.SENT]: 0,
[SendStatus.NOT_SENT]: 0,
};
results.forEach((result) => {
const { readStatus, signingStatus, sendStatus, _count } = result;
stats[readStatus] += _count;
@ -23,5 +24,6 @@ export const getRecipientsStats = async () => {
stats[sendStatus] += _count;
stats.TOTAL_RECIPIENTS += _count;
});
return stats;
};