File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { useState } from "react";
33import { useEffect } from "react" ;
44import "./MissionManifest.scss" ;
55
6+
67export 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 > ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments