chore: applying some of code rabit's implementation

This commit is contained in:
Caio Cabral committed 2024-11-03 07:01:38 -05:00
1 parent b4f5b68114
commit 3bedb1a689
2 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -54,7 +54,8 @@ const Check = ({ text, noHighlightText, variant = "info", outlined = false }) =>
opacity: 0.8, opacity: 0.8,
}} }}
> >
<Typography component="span">{noHighlightText}</Typography> {text} {noHighlightText && <Typography component="span">{noHighlightText}</Typography>}{" "}
{text}
</Typography> </Typography>
</Stack> </Stack>
); );
+3 -1
View File
@@ -52,7 +52,9 @@ const SetNewPassword = () => {
body: "Your password was reset successfully.", body: "Your password was reset successfully.",
}); });
} else { } 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({ createToast({
body: errorMessage, body: errorMessage,
}); });