🔊 refactor(ClipViewRemote.tsx, NotifViewRemote.tsx): replace console.log with toast.show for error handling to improve user feedback
This commit is contained in:
parent
e9ae892cdd
commit
e21fae574d
@ -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');
|
||||
});
|
||||
}
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user