From 61eeac887a1d2a1c518e6f4d42a8cc6957c5cfe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Wed, 1 Jan 2025 21:25:54 +0100 Subject: [PATCH] show error on client --- .../src/pages/seasons/components/RecalculateModal.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/client/src/pages/seasons/components/RecalculateModal.tsx b/packages/client/src/pages/seasons/components/RecalculateModal.tsx index 7069e40..466c853 100644 --- a/packages/client/src/pages/seasons/components/RecalculateModal.tsx +++ b/packages/client/src/pages/seasons/components/RecalculateModal.tsx @@ -29,6 +29,14 @@ export const RecalculateModal = ({ seasonId }: { seasonId: string }) => { status: 'success', }) }, + onError: (error) => { + console.error(error) + toast({ + title: 'Hiba az újraszámítás kezdeményezése közben!', + description: error.message, + status: 'error', + }) + }, }) }