Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
betsytraran committed May 22, 2024
1 parent 88e9cbd commit 5159165
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,20 @@ export const TreffListe = ({
}, [response])

if ((!personListe || personListe?.length === 0) && loading) {
return <Loading label="Laster treff ..." />
return (
<div style={{ marginTop: '-70px' }}>
<Loading label="Laster treff ..." />
</div>
)
}

if (error || response?.error) {
return (
<Alert variant="error" size="small">{`Feil ved henting av personer: ${
error || response?.error
}`}</Alert>
<Alert
variant="error"
size="small"
style={{ marginTop: '-70px' }}
>{`Feil ved henting av personer: ${error || response?.error}`}</Alert>
)
}

Expand Down

0 comments on commit 5159165

Please sign in to comment.