mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-20 16:39:07 -05:00
chore: applying some of code rabit's implementation
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user