fix/delivery only page
This commit is contained in:
parent
be1cfbb166
commit
4b4ad97a5f
|
@ -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(',')] );
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue