- updated logic;

This commit is contained in:
Vitalii Kiiko
2025-11-13 10:39:08 +01:00
parent db448c9207
commit 0feb1ff60a

View File

@@ -79,7 +79,6 @@ const LatestPecEmailsTable = () => {
const getUserActionCallback = (resp) => { const getUserActionCallback = (resp) => {
if (resp.status === 'SUCCESS') { if (resp.status === 'SUCCESS') {
setItems(resp.data);
if (toast.current && resp.message) { if (toast.current && resp.message) {
toast.current.show({ toast.current.show({
severity: 'success', severity: 'success',
@@ -87,9 +86,11 @@ const LatestPecEmailsTable = () => {
detail: resp.message detail: resp.message
}); });
} }
} PecEmailService.getPecEmails(getCallback, errGetCallbacks);
} else {
setLocalAsyncRequest(false); setLocalAsyncRequest(false);
} }
}
const errGetUserActionCallbacks = (resp) => { const errGetUserActionCallbacks = (resp) => {
setLocalAsyncRequest(false); setLocalAsyncRequest(false);