From 43bc1f926bd7f62b15882194f9d9933dd276bc9e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 24 Oct 2024 06:20:28 +0530 Subject: [PATCH] feat: show !sheets found error via notify --- src/components/molecules/IntegrationSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/molecules/IntegrationSettings.tsx b/src/components/molecules/IntegrationSettings.tsx index 3a2d0d67..faf34283 100644 --- a/src/components/molecules/IntegrationSettings.tsx +++ b/src/components/molecules/IntegrationSettings.tsx @@ -28,7 +28,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I const [loading, setLoading] = useState(false); const [error, setError] = useState(null); - const { recordingId } = useGlobalInfoStore(); + const { recordingId, notify } = useGlobalInfoStore(); const [recording, setRecording] = useState(null); const authenticateWithGoogle = () => { @@ -52,6 +52,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I setSpreadsheets(response.data); } catch (error: any) { console.error('Error fetching spreadsheet files:', error.response?.data?.message || error.message); + notify('error', `Error fetching spreadsheet files: ${error.response?.data?.message || error.message}`); } };