mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 17:57:31 +00:00
Towards strict
This commit is contained in:
@@ -58,7 +58,8 @@ function SetPasswordForm(props: SetPasswordFormProps) {
|
||||
setFieldError("confirm", t("PASSPHRASE_MATCH_ERROR"));
|
||||
}
|
||||
} catch (e) {
|
||||
setFieldError("confirm", `${t("UNKNOWN_ERROR")} ${e.message}`);
|
||||
const message = e instanceof Error ? e.message : "";
|
||||
setFieldError("confirm", `${t("UNKNOWN_ERROR")} ${message}`);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user