diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-07-23 15:01:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-23 15:01:04 +0100 |
commit | 27d712290a908fcb471c59a8e5c8e95bd862c49c (patch) | |
tree | e39aa55d097725fd9fcd448198d62a0c02b4966f /src/components/ProfileCard.tsx | |
parent | 59bafb426ff018a3b8a92dee8994c5413fb30076 (diff) | |
download | voidsky-27d712290a908fcb471c59a8e5c8e95bd862c49c.tar.zst |
Use appropriate icons for toasts (#4803)
* use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src/components/ProfileCard.tsx')
-rw-r--r-- | src/components/ProfileCard.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 8bc9376e0..2d3b3240e 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -306,9 +306,9 @@ export function FollowButtonInner({ )}`, ), ) - } catch (e: any) { - if (e?.name !== 'AbortError') { - Toast.show(_(msg`An issue occurred, please try again.`)) + } catch (err: any) { + if (err?.name !== 'AbortError') { + Toast.show(_(msg`An issue occurred, please try again.`), 'xmark') } } } @@ -326,9 +326,9 @@ export function FollowButtonInner({ )}`, ), ) - } catch (e: any) { - if (e?.name !== 'AbortError') { - Toast.show(_(msg`An issue occurred, please try again.`)) + } catch (err: any) { + if (err?.name !== 'AbortError') { + Toast.show(_(msg`An issue occurred, please try again.`), 'xmark') } } } |