From 1fd6e4e1b10c45e0a8ae76cdf9f5d1be74699a74 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Mon, 25 Mar 2024 12:34:55 +0100 Subject: [PATCH] fix(loading-screen): do not show empty errorMessage when being null Signed-off-by: Erik Michelson --- .../application-loader/loading-screen/loading-screen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/application-loader/loading-screen/loading-screen.tsx b/frontend/src/components/application-loader/loading-screen/loading-screen.tsx index 424e7b24d..4621b5e6f 100644 --- a/frontend/src/components/application-loader/loading-screen/loading-screen.tsx +++ b/frontend/src/components/application-loader/loading-screen/loading-screen.tsx @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + * SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ @@ -26,7 +26,7 @@ export const LoadingScreen: React.FC = ({ errorMessage }) => - {errorMessage !== undefined && {errorMessage}} + {errorMessage && {errorMessage}} ) }