From a1f46812ab4b1c24bca4eaedb022d1002ab8b2c9 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Thu, 11 Apr 2024 15:49:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ClipViewRemote.tsx,=20NotifV?= =?UTF-8?q?iewRemote.tsx):=20change=20error=20toast=20message=20to=20strin?= =?UTF-8?q?gify=20response=20for=20better=20error=20visibility?= 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 5292164..66cc7b3 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 => { - toast.show(response); + toast.show(JSON.stringify(response)); toast.show('failed to fetch latest clips'); }); } diff --git a/src/components/notif/NotifViewRemote.tsx b/src/components/notif/NotifViewRemote.tsx index ea530b8..224e847 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 => { - toast.show(response); + toast.show(JSON.stringify(response)); toast.show('failed to fetch latest notifications'); }); }