From e21fae574def7b096813a53e06a11cd7253355f8 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Mon, 8 Apr 2024 10:43:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20refactor(ClipViewRemote.tsx,=20N?= =?UTF-8?q?otifViewRemote.tsx):=20replace=20console.log=20with=20toast.sho?= =?UTF-8?q?w=20for=20error=20handling=20to=20improve=20user=20feedback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/clip/ClipViewRemote.tsx | 2 +- src/components/notif/NotifViewRemote.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/clip/ClipViewRemote.tsx b/src/components/clip/ClipViewRemote.tsx index 89f9d91..5292164 100644 --- a/src/components/clip/ClipViewRemote.tsx +++ b/src/components/clip/ClipViewRemote.tsx @@ -31,7 +31,7 @@ export default function ClipViewRemote() { toast.show('fetched latest clips from remote'); }) .catch(response => { - console.log(response); + toast.show(response); toast.show('failed to fetch latest clips'); }); } diff --git a/src/components/notif/NotifViewRemote.tsx b/src/components/notif/NotifViewRemote.tsx index d6edb13..ea530b8 100644 --- a/src/components/notif/NotifViewRemote.tsx +++ b/src/components/notif/NotifViewRemote.tsx @@ -32,7 +32,7 @@ export default function NotifViewRemote() { toast.show('fetched latest notifications from remote'); }) .catch(response => { - console.log(response); + toast.show(response); toast.show('failed to fetch latest notifications'); }); }