diff options
Diffstat (limited to 'src/view/com/profile')
-rw-r--r-- | src/view/com/profile/ProfileFollowers.tsx | 4 | ||||
-rw-r--r-- | src/view/com/profile/ProfileFollows.tsx | 4 | ||||
-rw-r--r-- | src/view/com/profile/ProfileHeader.tsx | 6 | ||||
-rw-r--r-- | src/view/com/profile/ProfileMembers.tsx | 2 |
4 files changed, 6 insertions, 10 deletions
diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx index 409df05cb..e6e710ff3 100644 --- a/src/view/com/profile/ProfileFollowers.tsx +++ b/src/view/com/profile/ProfileFollowers.tsx @@ -29,9 +29,7 @@ export const ProfileFollowers = observer(function ProfileFollowers({ setView(newView) newView .setup() - .catch(err => - store.log.error('Failed to fetch user followers', err.toString()), - ) + .catch(err => store.log.error('Failed to fetch user followers', err)) }, [name, view?.params.user, store]) const onRefresh = () => { diff --git a/src/view/com/profile/ProfileFollows.tsx b/src/view/com/profile/ProfileFollows.tsx index f63cc0107..73e765d19 100644 --- a/src/view/com/profile/ProfileFollows.tsx +++ b/src/view/com/profile/ProfileFollows.tsx @@ -29,9 +29,7 @@ export const ProfileFollows = observer(function ProfileFollows({ setView(newView) newView .setup() - .catch(err => - store.log.error('Failed to fetch user follows', err.toString()), - ) + .catch(err => store.log.error('Failed to fetch user follows', err)) }, [name, view?.params.user, store]) const onRefresh = () => { diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 5a87401b4..a4d7c7a92 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -52,7 +52,7 @@ export const ProfileHeader = observer(function ProfileHeader({ }`, ) }, - err => store.log.error('Failed to toggle follow', err.toString()), + err => store.log.error('Failed to toggle follow', err), ) } const onPressEditProfile = () => { @@ -94,7 +94,7 @@ export const ProfileHeader = observer(function ProfileHeader({ await view.muteAccount() Toast.show('Account muted') } catch (e: any) { - store.log.error('Failed to mute account', e.toString()) + store.log.error('Failed to mute account', e) Toast.show(`There was an issue! ${e.toString()}`) } } @@ -103,7 +103,7 @@ export const ProfileHeader = observer(function ProfileHeader({ await view.unmuteAccount() Toast.show('Account unmuted') } catch (e: any) { - store.log.error('Failed to unmute account', e.toString()) + store.log.error('Failed to unmute account', e) Toast.show(`There was an issue! ${e.toString()}`) } } diff --git a/src/view/com/profile/ProfileMembers.tsx b/src/view/com/profile/ProfileMembers.tsx index bcba2a4da..7f566c198 100644 --- a/src/view/com/profile/ProfileMembers.tsx +++ b/src/view/com/profile/ProfileMembers.tsx @@ -22,7 +22,7 @@ export const ProfileMembers = observer(function ProfileMembers({ setView(newView) newView .setup() - .catch(err => store.log.error('Failed to fetch members', err.toString())) + .catch(err => store.log.error('Failed to fetch members', err)) }, [name, view?.params.actor, store]) const onRefresh = () => { |