From ef80a6f319c509b330e23291ffab353f461afff3 Mon Sep 17 00:00:00 2001 From: Ralitsa Ilieva Date: Fri, 15 Dec 2023 09:59:30 +0100 Subject: [PATCH] e is returned in SubscriptionPage --- src/components/client/notifications/SubscriptionPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/client/notifications/SubscriptionPage.tsx b/src/components/client/notifications/SubscriptionPage.tsx index 86963e664..aa73c8dce 100644 --- a/src/components/client/notifications/SubscriptionPage.tsx +++ b/src/components/client/notifications/SubscriptionPage.tsx @@ -96,7 +96,7 @@ export default function SubscriptionPage(data: Props) { callSubscribeApiRoute(payload).catch(() => console.log()) }, []) - const handleError = () => { + const handleError = (e: AxiosError) => { setLoading(false) setIsSuccess(false) }