Skip to content

Commit

Permalink
Fjernet unødvendig ekstra feilmelding, fjernet noen skriveleif
Browse files Browse the repository at this point in the history
  • Loading branch information
EndreHM committed Dec 13, 2024
1 parent 3fb3469 commit af07f19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/frontend/Komponenter/Behandling/Modal/HenleggModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export const HenleggModal: FC<{
const [harHuketAvSendBrev, settHarHuketAvSendBrev] = useState<boolean>(true);
const [låsKnapp, settLåsKnapp] = useState<boolean>(false);
const [feilmelding, settFeilmelding] = useState<string>();
const [forhåndsvisningsFeil, settForhåndsvisningsFeil] = useState<string>();

const visBrevINyFane = () => {
axiosRequest<string, null>({
Expand All @@ -64,7 +63,7 @@ export const HenleggModal: FC<{
'Forhåndsvisning av varselbrev'
);
} else {
settForhåndsvisningsFeil(respons.frontendFeilmelding);
settFeilmelding(respons.frontendFeilmelding);
}
});
};
Expand Down Expand Up @@ -191,9 +190,6 @@ export const HenleggModal: FC<{
{feilmelding && (
<AlertStripe variant={'error'}>{feilmelding}</AlertStripe>
)}
{forhåndsvisningsFeil && (
<AlertStripe variant={'error'}>{forhåndsvisningsFeil}</AlertStripe>
)}
{vergemål.length > 0 && (
<AlertStripe size={'small'} variant={'warning'}>
{
Expand Down

0 comments on commit af07f19

Please sign in to comment.