Skip to content

Commit

Permalink
fix: csv checking does not notify if no warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davdarras committed Jun 16, 2023
1 parent f1516ae commit 572324d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/components/CsvAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 572324d

Please sign in to comment.