From 6e3d6cee396180489b845a0af6fa033156c71b3c Mon Sep 17 00:00:00 2001 From: JeyGR Date: Thu, 19 Dec 2024 11:15:07 +0530 Subject: [PATCH] Chore fix --- .../components/Objects/Modals/Dash/OrgUsers/RolesUpdate.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/components/Objects/Modals/Dash/OrgUsers/RolesUpdate.tsx b/apps/web/components/Objects/Modals/Dash/OrgUsers/RolesUpdate.tsx index 30ddf8b1..e8bea627 100644 --- a/apps/web/components/Objects/Modals/Dash/OrgUsers/RolesUpdate.tsx +++ b/apps/web/components/Objects/Modals/Dash/OrgUsers/RolesUpdate.tsx @@ -41,15 +41,15 @@ function RolesUpdate(props: Props) { e.preventDefault() setIsSubmitting(true) const res = await updateUserRole(org.id, props.user.user.id, assignedRole,access_token) - + const toastId = toast.loading("Updating role...") if (res.status === 200) { await mutate(`${getAPIUrl()}orgs/${org.id}/users`) props.setRolesModal(false) - toast.success("Updated role") + toast.success("Updated role", {id:toastId}) } else { setIsSubmitting(false) setError('Error ' + res.status + ': ' + res.data.detail) - toast.error("Couldn't update now") + toast.error("Couldn't update now", {id:toastId}) } }