From 572324d61a1febae0c1ba10124e980d4fdf9a45b Mon Sep 17 00:00:00 2001 From: David Darras Date: Fri, 16 Jun 2023 17:38:13 +0200 Subject: [PATCH] fix: csv checking does not notify if no warnings --- src/ui/components/CsvAlert.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/components/CsvAlert.tsx b/src/ui/components/CsvAlert.tsx index 0952082..842c4ff 100644 --- a/src/ui/components/CsvAlert.tsx +++ b/src/ui/components/CsvAlert.tsx @@ -13,7 +13,7 @@ export const CsvAlert = memo(({ messages }: CsvAlertType) => { const notifier = useNotifier(); useEffect(() => { - if (!messages.warnings) { + if (!messages.warnings || !messages.warnings.length) { return; } const messageWarnings = (