chore: applying some of code rabit's implementation

This commit is contained in:
Caio Cabral
2024-11-03 07:01:38 -05:00
parent b4f5b68114
commit 3bedb1a689
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ const Check = ({ text, noHighlightText, variant = "info", outlined = false }) =>
opacity: 0.8,
}}
>
<Typography component="span">{noHighlightText}</Typography> {text}
{noHighlightText && <Typography component="span">{noHighlightText}</Typography>}{" "}
{text}
</Typography>
</Stack>
);
+3 -1
View File
@@ -52,7 +52,9 @@ const SetNewPassword = () => {
body: "Your password was reset successfully.",
});
} else {
const errorMessage = action.payload ? action.payload.msg : "Unknown error";
const errorMessage = action.payload
? action.payload.msg
: "Unable to reset password. Please try again later or contact support.";
createToast({
body: errorMessage,
});