- updated logic;
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user