Skip to content

Commit

Permalink
Fix: footer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauritzskog committed Sep 15, 2024
1 parent a468698 commit 7ae8f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const Footer: FC = () => {
try {
const response = await fetch("/api/styret");
const result = await response.json();
setKomite();
if (response.ok) {
setStyret(result.data); // Assuming the API returns { data: hovedstyret[] }
} else {
Expand All @@ -58,7 +59,6 @@ const Footer: FC = () => {

useEffect(() => {
fetchStyretData();
setKomite();

if (samarbeidspartnerData) {
setLogos(samarbeidspartnerData?.data);
Expand Down

0 comments on commit 7ae8f48

Please sign in to comment.