Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error messages #202

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/react-app/src/components/SignatureSignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SignatureSignUp = forwardRef(({ address, userProvider, onSuccess, setUserR
} catch (e) {
// TODO handle errors. Issue #25 https://github.com/moonshotcollective/scaffold-directory/issues/25
toast({
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
description: "Can't get the sign message from the server",
status: "error",
});
setLoading(false);
Expand All @@ -33,7 +33,7 @@ const SignatureSignUp = forwardRef(({ address, userProvider, onSuccess, setUserR

if (!signMessage) {
toast({
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
description: "Sign message is empty",
status: "error",
});
setLoading(false);
Expand Down Expand Up @@ -68,7 +68,10 @@ const SignatureSignUp = forwardRef(({ address, userProvider, onSuccess, setUserR

return (
<Button ref={ref} colorScheme="blue" disabled={loading} onClick={handleLoginSigning}>
<span role="img" aria-label="write icon">✍</span><chakra.span ml={2}>Register</chakra.span>
<span role="img" aria-label="write icon">
✍
</span>
<chakra.span ml={2}>Register</chakra.span>
</Button>
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const BuilderProfileCard = ({ builder, mainnetProvider, isMyProfile, userProvide
signMessage = await getUpdateSocialsSignMessage(address);
} catch (error) {
toast({
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
description: "Can't get the sign message from the server",
status: "error",
variant: toastVariant,
});
Expand Down Expand Up @@ -160,7 +160,7 @@ const BuilderProfileCard = ({ builder, mainnetProvider, isMyProfile, userProvide
signMessage = await getUpdateReachedOutFlagSignMessage(builder.id, reachedOut);
} catch (error) {
toast({
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
description: "Can't get the sign message from the server",
status: "error",
variant: toastVariant,
});
Expand Down
Loading