Skip to content

Commit c120bb4

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Components/MissionManifest/MissionManifest.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ function MissionManifest(props: MissionManifestProps) {
4545
totalPhotos: data.total_photos,
4646
});
4747
});
48-
}, [props.roverType, apiKey]);
48+
// eslint-disable-next-line react-hooks/exhaustive-deps
49+
}, [props.roverType]);
4950

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

src/Components/RoverImages/RoverImages.tsx

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

6161
fetchData();
62-
}, [props.roverType, apiKey]);
63-
64-
let firstLetter = props.roverType.charAt(0).toUpperCase;
65-
62+
}, [props.roverType]);
6663

6764
if (error) {
6865
return (

0 commit comments

Comments
 (0)