mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Removed some console logs
This commit is contained in:
parent
e4d64f3656
commit
93aab046d8
1 changed files with 1 additions and 3 deletions
|
@ -17,7 +17,7 @@ if (__DEV__) {
|
|||
}
|
||||
|
||||
// Switch this on if you wanna run production URLs while in development
|
||||
let use_production = false;
|
||||
let use_production = true;
|
||||
if (use_production) {
|
||||
backendURL = "https://stude.keannu1.duckdns.org";
|
||||
backendURLWebsocket = "ws://stude.keannu1.duckdns.org";
|
||||
|
@ -142,7 +142,6 @@ export async function UserInfo() {
|
|||
}
|
||||
|
||||
export async function PatchUserInfo(info: PatchStudentData) {
|
||||
console.log("API", JSON.stringify(info));
|
||||
const config = await GetConfig();
|
||||
return instance
|
||||
.patch("/api/v1/accounts/users/me/", info, config)
|
||||
|
@ -154,7 +153,6 @@ export async function PatchUserInfo(info: PatchStudentData) {
|
|||
let error_message = "";
|
||||
if (error.response) error_message = error.response.data;
|
||||
else error_message = "Unable to reach servers";
|
||||
console.log(error_message);
|
||||
return [false, error_message];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue