From 759ceac608469d07e49cb433132b34241a7ac34b Mon Sep 17 00:00:00 2001 From: Bastian Meissner Date: Tue, 8 Sep 2020 18:26:45 +0200 Subject: [PATCH] Update --- src/app.tsx | 3 +-- src/components/imprint.tsx | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index 40b584d..5694bf6 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -6,11 +6,10 @@ import Greeter from "./components/greeter"; import AppList from "./components/appList"; import BookmarkList from "./components/bookmarkList"; import Settings from "./components/settings"; +import Imprint from "./components/imprint"; import selectedTheme from "./components/themeManager"; -import Imprint from "./components/imprint"; - const GlobalStyle = createGlobalStyle` body { background-color: ${selectedTheme.backgroundColor}; diff --git a/src/components/imprint.tsx b/src/components/imprint.tsx index 1dce13b..9444096 100644 --- a/src/components/imprint.tsx +++ b/src/components/imprint.tsx @@ -87,9 +87,13 @@ const Imprint = () => { imprintData: { name, address, phone, email, url, error }, } = useImprintData(); + useEffect(() => { + console.error(error); + }, [error]); + return ( <> - {error ? ( + {!error ? ( About