improve: add missing try-catch cases (#86)

* improve: add missing try-catch cases

* i18n: support german

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: uubulb <uubulb@users.noreply.github.com>
This commit is contained in:
UUBulbanduubulb authored and GitHub committed 2025-01-03 22:43:36 +08:00
1 parent 290459997c
commit f93d266810
17 files changed
+123 -6996

No files matched your search

+2 -1
View File
@@ -61,8 +61,9 @@ export const ProfileCard = ({ className }: { className: string }) => {
try {
await updateProfile(values)
} catch (e) {
console.error(e)
toast(t("Error"), {
description: `${e}`,
description: t("Results.UnExpectedError"),
})
return
}