From 60fa36a65ed852884a3de3709736755ff83edaaf Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 9 Sep 2023 17:58:39 +0200 Subject: [PATCH] Updated the Info page --- .../pages/Info/components/Settings/components/Delete/Delete.jsx | 2 +- .../pages/Info/components/Settings/components/Key/Key.jsx | 2 +- .../pages/Info/components/Settings/components/Name/Name.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/states/Dashboard/pages/Info/components/Settings/components/Delete/Delete.jsx b/src/states/Dashboard/pages/Info/components/Settings/components/Delete/Delete.jsx index cd31c27..914eb84 100644 --- a/src/states/Dashboard/pages/Info/components/Settings/components/Delete/Delete.jsx +++ b/src/states/Dashboard/pages/Info/components/Settings/components/Delete/Delete.jsx @@ -11,7 +11,7 @@ export const Delete = () => { await deleteRequest(`/project/${currentProject.id}`); await updateProjects(); } catch (e) { - console.error(e); + console.error(e.message); } } diff --git a/src/states/Dashboard/pages/Info/components/Settings/components/Key/Key.jsx b/src/states/Dashboard/pages/Info/components/Settings/components/Key/Key.jsx index a72b1c2..3df9a16 100644 --- a/src/states/Dashboard/pages/Info/components/Settings/components/Key/Key.jsx +++ b/src/states/Dashboard/pages/Info/components/Settings/components/Key/Key.jsx @@ -16,7 +16,7 @@ export const Key = () => { await postRequest(`/project/${currentProject.id}/regenerate`); await updateProjects(); } catch (e) { - console.error(e); + console.error(e.message); } } diff --git a/src/states/Dashboard/pages/Info/components/Settings/components/Name/Name.jsx b/src/states/Dashboard/pages/Info/components/Settings/components/Name/Name.jsx index 479c99b..56cd9d7 100644 --- a/src/states/Dashboard/pages/Info/components/Settings/components/Name/Name.jsx +++ b/src/states/Dashboard/pages/Info/components/Settings/components/Name/Name.jsx @@ -25,7 +25,7 @@ export const Name = () => { await updateProjects(); setNameChanged(false); } catch (e) { - console.error(e); + console.error(e.message); } }