- updated logic;
This commit is contained in:
@@ -79,7 +79,6 @@ const LatestPecEmailsTable = () => {
|
||||
|
||||
const getUserActionCallback = (resp) => {
|
||||
if (resp.status === 'SUCCESS') {
|
||||
setItems(resp.data);
|
||||
if (toast.current && resp.message) {
|
||||
toast.current.show({
|
||||
severity: 'success',
|
||||
@@ -87,9 +86,11 @@ const LatestPecEmailsTable = () => {
|
||||
detail: resp.message
|
||||
});
|
||||
}
|
||||
}
|
||||
PecEmailService.getPecEmails(getCallback, errGetCallbacks);
|
||||
} else {
|
||||
setLocalAsyncRequest(false);
|
||||
}
|
||||
}
|
||||
|
||||
const errGetUserActionCallbacks = (resp) => {
|
||||
setLocalAsyncRequest(false);
|
||||
|
||||
Reference in New Issue
Block a user