Send Test Notification Type fix

This commit is contained in:
headlesdev
2025-05-25 22:01:15 +02:00
parent fb13c2bfce
commit a218a7f8f3
4 changed files with 16 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ export const NotificationSettings = ({ onError, onSuccess }: { onError: (message
const testNotificationHandler = async (notificationProviderId: number) => {
(document.getElementById('test_notification') as HTMLDialogElement)?.showModal();
const notificationTest = await testNotification(notificationProviderId);
setNotificationTestId(notificationTest.id);
setNotificationTestId(notificationTest);
}
return (

View File

@@ -13,9 +13,11 @@ export default function TestNotification({ notificationTestId }: TestNotificatio
const checkNotificationTest = async () => {
console.log(notificationTestId);
await getNotificationTest(notificationTestId);
}
useEffect(() => {
checkNotificationTest();
}, [notificationTestId]);
return (
<div>