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