Skip to content

Commit

Permalink
remove console.log test code
Browse files Browse the repository at this point in the history
  • Loading branch information
dorothyynwong committed Aug 2, 2024
1 parent 1f1fbc4 commit 2c42f72
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/images/PreviewImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export function PreviewImage() {
try {
const todaysPicture = await fetchAPI("https://api.nasa.gov/planetary/apod?api_key=");
setMyPreviewImage(todaysPicture);
console.log(myPreviewImage);

}
catch (error) {
console.error("Error fetching today's image:", error);
Expand All @@ -33,10 +31,8 @@ export function PreviewImage() {
const handleBirthdayFormSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
try {
console.log(birthday);
const userBirthdayImage = await fetchAPI("https://api.nasa.gov/planetary/apod?api_key=", birthday);
setMyPreviewImage(userBirthdayImage);
console.log(myPreviewImage);
} catch (error) {
console.error("Error fetching today's image:", error);
}
Expand Down

0 comments on commit 2c42f72

Please sign in to comment.