fix loader and err msg member
This commit is contained in:
@ -191,7 +191,9 @@ const ManageMembers = () => {
|
||||
toast.success('Success Create Member. PIN sent to email');
|
||||
}
|
||||
} catch (error: any) {
|
||||
if (error?.response?.data?.message) toast.error(error?.response?.data?.message);
|
||||
if (error?.response?.data?.message) {
|
||||
toast.error(`${error?.response?.data?.error}.\n${error?.response?.data?.message}`)
|
||||
}
|
||||
else toast.error(error.message);
|
||||
} finally {
|
||||
setDialogOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user