Skip to content

Commit

Permalink
json response
Browse files Browse the repository at this point in the history
  • Loading branch information
lauren-mieczkowski committed Jan 12, 2024
1 parent 2734771 commit 9d9c107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connect/components/DeviceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ const DeviceForm = ({
});

if (response.ok) {
const responseData = await response.json();
const responseData = await JSON.stringify(response);
console.log('Response:', responseData);
// Handle the successful response here
} else {
const errorData = await response.json();
const errorData = await JSON.stringify(response);
console.error('Error response:', errorData);
// Handle the error response here
}
Expand Down

0 comments on commit 9d9c107

Please sign in to comment.