Skip to content

Commit

Permalink
fix: default role selection makes the user invisible on the dashboard…
Browse files Browse the repository at this point in the history
… until the page is refreshed

Signed-off-by: MoulikaKulkarni <[email protected]>
  • Loading branch information
MoulikaKulkarni committed Sep 21, 2023
1 parent f94e192 commit 1d5bdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/organization/users/EditUserRolesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const EditUserRoleModal = (props: { openModal: boolean; user: User; setMessage:

const [erroMsg, setErrMsg] = useState<string | null>(null)

const [shouldRender, setShouldRender] = useState(true);
const [shouldRender, setShouldRender] = useState(false);


const getRoles = async () => {
Expand Down Expand Up @@ -172,7 +172,7 @@ const EditUserRoleModal = (props: { openModal: boolean; user: User; setMessage:
<span className="text-red-500 text-xs">*</span>
</div>

{ shouldRender && (
{ !shouldRender && (
roles && <div className="grid w-full grid-cols-1 gap-4 mt-0 mb-4 xl:grid-cols-2 2xl:grid-cols-2">

{
Expand Down

0 comments on commit 1d5bdc5

Please sign in to comment.