Skip to content

Commit

Permalink
fix: backend
Browse files Browse the repository at this point in the history
  • Loading branch information
orig committed Dec 24, 2023
1 parent 80fc380 commit daa9f45
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/frontend/src/routes/dashboard/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ export const updateProfile = globalAction$(
...(profilePicture && { profilePicture }),
};

console.log(`Start request to ${process.env.API_DOMAIN}/api/v1/users/update`);

const response: Response = await fetch(`${process.env.API_DOMAIN}/api/v1/users/update`, {
method: 'PATCH',
headers: {
Expand All @@ -62,12 +60,8 @@ export const updateProfile = globalAction$(
body: JSON.stringify(body),
});

console.log("Response from server", response);

const { accessToken, refreshToken } = await response.json();

console.log(`accessToken: ${accessToken}`);

if (!response.ok || !accessToken || !refreshToken) {
return fail(500, {
message: 'Something went wrong. Please try again later.',
Expand Down

0 comments on commit daa9f45

Please sign in to comment.