Skip to content

Commit

Permalink
Update src/pages/Browse/Browse.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Oppedal Heggelund <[email protected]>
  • Loading branch information
thomaslf97 and mheggelund authored Oct 21, 2024
1 parent d767150 commit 663d92f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Browse/Browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const Browse = () => {
<>
<Styled.BrowseWrapper>
<Typography variant="h1">Browse all models</Typography>
{disableButton() ? (
{isOwnerOrAdmin() ? (
<div className="btn-div">
<Button disabled={!disableButton()} onClick={navigateAddModel}>
<Button disabled={!isOwnerOrAdmin()} onClick={navigateAddModel}>
Add new model
</Button>
</div>
Expand Down

0 comments on commit 663d92f

Please sign in to comment.