Skip to content

Commit 9325456

Browse files
author
Hannah Dunsmore
committed
fixed apikey build error
1 parent 539bd5b commit 9325456

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Components/MissionManifest/MissionManifest.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useState } from "react";
33
import { useEffect } from "react";
44
import "./MissionManifest.scss";
55

6+
67
export enum Rovers {
78
CURIOSITY = "curiosity",
89
OPPORTUNIY = "opportunity",
@@ -44,7 +45,7 @@ function MissionManifest(props: MissionManifestProps) {
4445
totalPhotos: data.total_photos,
4546
});
4647
});
47-
}, [props.roverType]);
48+
}, [props.roverType, apiKey]);
4849

4950
if (!manifestData) {
5051
return <p id="loading-text">Loading...</p>;

src/Components/RoverImages/RoverImages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function RoverImages(props: MissionManifestProps) {
5959
};
6060

6161
fetchData();
62-
}, [props.roverType]);
62+
}, [props.roverType, apiKey]);
6363

6464
let firstLetter = props.roverType.charAt(0).toUpperCase;
6565

0 commit comments

Comments
 (0)