Skip to content

Commit

Permalink
Fixing edit button for test role
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 committed Oct 14, 2024
1 parent 9a27265 commit b850a03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function ParamsCard({dataObj, handleDelete, showEdit}) {
</VerticalStack>
<HorizontalStack gap={"2"} align="end">
<Button size="slim" onClick={handleDelete} icon={DeleteMajor}><div data-testid="delete_button">Delete</div></Button>
{authMechanism?.type === 'HardCoded' ? <Button size="slim" primary onClick={() => showEdit()}>Edit</Button> : null}
{authMechanism?.type?.toLowerCase() === 'hardcoded' ? <Button size="slim" primary onClick={() => showEdit()}>Edit</Button> : null}
</HorizontalStack>
</VerticalStack>
</Box>
Expand Down

0 comments on commit b850a03

Please sign in to comment.