fix/delivery only page

This commit is contained in:
Priyatham Sai Chand 2021-11-06 14:42:02 +05:30
parent be1cfbb166
commit 4b4ad97a5f
No known key found for this signature in database
GPG Key ID: 064B32CC45553807
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ const EmailTemplate = () => {
})
//var common = emailarray.filter(x => bouncedarray.indexOf(x) !== -1)
if (!bounced_emails.length) { setDeliveredEmails(emailarray);}
setLoading(true);
}
useEffect(() => {
@ -67,6 +68,7 @@ const EmailTemplate = () => {
var common = emailarray.filter(x => !bouncedarray.includes(x))
console.log("common array ", common)
setDeliveredEmails([])
//if (!bounced_emails.length) { setDeliveredEmails(emailarray); return; }
common.forEach((value, index) => {
setDeliveredEmails(oldArray => [...oldArray,value.concat(',')] );
});