Removed some console logs

This commit is contained in:
Keannu Bernasol 2023-07-27 16:02:14 +08:00
parent e4d64f3656
commit 93aab046d8

View file

@ -17,7 +17,7 @@ if (__DEV__) {
} }
// Switch this on if you wanna run production URLs while in development // Switch this on if you wanna run production URLs while in development
let use_production = false; let use_production = true;
if (use_production) { if (use_production) {
backendURL = "https://stude.keannu1.duckdns.org"; backendURL = "https://stude.keannu1.duckdns.org";
backendURLWebsocket = "ws://stude.keannu1.duckdns.org"; backendURLWebsocket = "ws://stude.keannu1.duckdns.org";
@ -142,7 +142,6 @@ export async function UserInfo() {
} }
export async function PatchUserInfo(info: PatchStudentData) { export async function PatchUserInfo(info: PatchStudentData) {
console.log("API", JSON.stringify(info));
const config = await GetConfig(); const config = await GetConfig();
return instance return instance
.patch("/api/v1/accounts/users/me/", info, config) .patch("/api/v1/accounts/users/me/", info, config)
@ -154,7 +153,6 @@ export async function PatchUserInfo(info: PatchStudentData) {
let error_message = ""; let error_message = "";
if (error.response) error_message = error.response.data; if (error.response) error_message = error.response.data;
else error_message = "Unable to reach servers"; else error_message = "Unable to reach servers";
console.log(error_message);
return [false, error_message]; return [false, error_message];
}); });
} }