Skip to content

Commit

Permalink
fix(admin): log create error to console
Browse files Browse the repository at this point in the history
  • Loading branch information
Rei-x committed Feb 19, 2023
1 parent 0efe8ea commit 6a7197f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/features/admin/views/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ export const CreatePage = () => {
toast({
title: "Organizacja została dodana",
});
} catch {
} catch (e) {
console.error(e);

toast({
status: "error",
title: "Błąd podczas dodawania organizacji",
description: `Nie udało się dodać organizacji`,
description: `Nie udało się dodać organizacji (więcej informacji w konsoli)`,
});
}
}
Expand Down

0 comments on commit 6a7197f

Please sign in to comment.