Skip to content

Commit bfef790

Browse files
committed
chore: fix invalid URL bug in updateUser
1 parent 70602d9 commit bfef790

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ui/services/user.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,8 @@ const getUsers = async (
7171

7272
const updateUser = async (data: UserData): Promise<void> => {
7373
console.log(data);
74-
// todo fix
75-
const url = new URL(`${API_BASE}/api/auth/gitAccount`);
76-
7774
try {
78-
await axios.post(url.toString(), data, getAxiosConfig());
75+
await axios.post(`${API_BASE}/api/auth/gitAccount`, data, getAxiosConfig());
7976
} catch (error) {
8077
const axiosError = error as AxiosError;
8178
if (axiosError.response) {

0 commit comments

Comments
 (0)