From 5246d7e4d15c301c520ea5465f52ef13133b8732 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sun, 24 Apr 2022 14:52:05 +0200 Subject: [PATCH] . --- src/client/src/components/ErrorSnackbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/src/components/ErrorSnackbar.js b/src/client/src/components/ErrorSnackbar.js index ee2f324..ed4c219 100644 --- a/src/client/src/components/ErrorSnackbar.js +++ b/src/client/src/components/ErrorSnackbar.js @@ -16,7 +16,9 @@ export default function showError(props) { props.setOpen(false); }; - console.log(props.message); + if (props.message && props.message.length > 0) { + console.log(props.message); + } return (