Skip to content

Commit

Permalink
Ikke vis endreknapp for automatisk godkjent institusjon (#6637)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenoosvik authored Sep 26, 2024
1 parent cbdbd79 commit 430ef9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fakta-institusjon/src/InstitusjonFerdigVisning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ interface OwnProps {

const InstitusjonFerdigVisning = ({ vurdering, readOnly, rediger }: OwnProps) => {
const { hentSaksbehandlerNavn } = useSaksbehandlerOppslag();
const visEndreLink = !readOnly && vurdering.resultat !== Vurderingsresultat.GODKJENT_AUTOMATISK;

return (
<DetailView
title="Vurdering av institusjon"
// eslint-disable-next-line react/jsx-no-useless-fragment
contentAfterTitleRenderer={() =>
!readOnly ? (
visEndreLink ? (
<LinkButton onClick={rediger} className={styles.endreLink}>
Endre vurdering
</LinkButton>
Expand Down

0 comments on commit 430ef9c

Please sign in to comment.