Changed console logging of errors to use console error logging
This commit is contained in:
@@ -28,7 +28,7 @@ export const createNewNote = async (token: string, note: NoteItem) => {
|
||||
})
|
||||
.catch((err) => {
|
||||
error = err.detail;
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
return null;
|
||||
});
|
||||
|
||||
@@ -59,7 +59,7 @@ export const getNotes = async (token: string = '') => {
|
||||
})
|
||||
.catch((err) => {
|
||||
error = err.detail;
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
return null;
|
||||
});
|
||||
|
||||
@@ -108,7 +108,7 @@ export const getNoteById = async (token: string, id: string) => {
|
||||
.catch((err) => {
|
||||
error = err.detail;
|
||||
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
return null;
|
||||
});
|
||||
|
||||
@@ -143,7 +143,7 @@ export const updateNoteById = async (token: string, id: string, note: NoteItem)
|
||||
.catch((err) => {
|
||||
error = err.detail;
|
||||
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
return null;
|
||||
});
|
||||
|
||||
@@ -175,7 +175,7 @@ export const deleteNoteById = async (token: string, id: string) => {
|
||||
.catch((err) => {
|
||||
error = err.detail;
|
||||
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
return null;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user