chore: applying some of code rabit's implementation
This commit is contained in:
1 parent
b4f5b68114
commit
3bedb1a689
2 files changed
+5
-2
No files matched your search
@@ -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