From f2866befb888f2abcab29cd662927cac43c82202 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 23 Dec 2025 12:14:27 +0000 Subject: [PATCH] Polish: Fix notification arguments in Alerts.tsx --- frontend-modern/src/pages/Alerts.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend-modern/src/pages/Alerts.tsx b/frontend-modern/src/pages/Alerts.tsx index 41041bd25..e4ffa2e03 100644 --- a/frontend-modern/src/pages/Alerts.tsx +++ b/frontend-modern/src/pages/Alerts.tsx @@ -4479,10 +4479,10 @@ function DestinationsTab(props: DestinationsTabProps) { type: 'email', config: { ...config } as Record, // Send current form data, not saved config }); - notificationStore.success('Test email sent successfully!', 'Check your inbox.'); + notificationStore.success('Test email sent successfully! Check your inbox.'); } catch (err) { logger.error('Failed to send test email:', err); - notificationStore.error('Failed to send test email', err instanceof Error ? err.message : 'Unknown error'); + notificationStore.error('Failed to send test email: ' + (err instanceof Error ? err.message : 'Unknown error')); } finally { setTestingEmail(false); } @@ -4513,8 +4513,8 @@ function DestinationsTab(props: DestinationsTabProps) { } catch (err) { logger.error('Failed to send test Apprise notification:', err); notificationStore.error( - 'Failed to send test Apprise notification', - err instanceof Error ? err.message : 'Unknown error', + 'Failed to send test Apprise notification: ' + + (err instanceof Error ? err.message : 'Unknown error'), ); } finally { setTestingApprise(false); @@ -4534,8 +4534,7 @@ function DestinationsTab(props: DestinationsTabProps) { notificationStore.success('Test webhook sent successfully!'); } catch (err) { notificationStore.error( - 'Failed to send test webhook', - err instanceof Error ? err.message : 'Unknown error', + 'Failed to send test webhook: ' + (err instanceof Error ? err.message : 'Unknown error'), ); } finally { setTestingWebhook(null); @@ -7364,8 +7363,7 @@ function HistoryTab() { } catch (err) { logger.error('Error clearing alert history:', err); notificationStore.error( - 'Error clearing alert history', - 'Please check your connection and try again.', + 'Error clearing alert history: Please check your connection and try again.', ); } }