From 509dfff0bf829fee4bcbaa1f3ef509d2054bbf82 Mon Sep 17 00:00:00 2001 From: jacobo-dominguez-wgu Date: Mon, 27 Apr 2026 10:58:13 -0600 Subject: [PATCH] fix: redirecting to home when there are not roles pending after removal Co-authored-by: Copilot --- src/authz-module/audit-user/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/authz-module/audit-user/index.tsx b/src/authz-module/audit-user/index.tsx index 51d97c3f..04f14d7c 100644 --- a/src/authz-module/audit-user/index.tsx +++ b/src/authz-module/audit-user/index.tsx @@ -202,6 +202,9 @@ const AuditUserPage = () => { type: 'success', }); handleCloseConfirmDeletionModal(); + if (remainingRolesCount === 0) { + navigate(AUTHZ_HOME_PATH); + } }, onError: (error, retryVariables) => { showErrorToast(error, () => runRevokeRole(retryVariables));