From 2e5a8ac2ac6962f508f987e139ccd9d0e156ba66 Mon Sep 17 00:00:00 2001 From: Rassmagin Alexander Date: Mon, 25 Nov 2024 01:58:36 +0300 Subject: [PATCH] and subscribe too --- public/components/EventContentPage/EventContentPage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/components/EventContentPage/EventContentPage.js b/public/components/EventContentPage/EventContentPage.js index 75c059a..c0c487a 100644 --- a/public/components/EventContentPage/EventContentPage.js +++ b/public/components/EventContentPage/EventContentPage.js @@ -89,8 +89,7 @@ export class EventContentPage { try { const response = await api.post(path, request); } catch (error) { - console.log(error); - console.log("Ошибка при загрузке события"); + navigate('/login'); } });