Skip to content

Commit 5f01d6e

Browse files
authored
Update error messages (#202)
1 parent d95a438 commit 5f01d6e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

β€Žpackages/react-app/src/components/SignatureSignUp.jsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const SignatureSignUp = forwardRef(({ address, userProvider, onSuccess, setUserR
2323
} catch (e) {
2424
// TODO handle errors. Issue #25 https://github.com/moonshotcollective/scaffold-directory/issues/25
2525
toast({
26-
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
26+
description: "Can't get the sign message from the server",
2727
status: "error",
2828
});
2929
setLoading(false);
@@ -33,7 +33,7 @@ const SignatureSignUp = forwardRef(({ address, userProvider, onSuccess, setUserR
3333

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

6969
return (
7070
<Button ref={ref} colorScheme="blue" disabled={loading} onClick={handleLoginSigning}>
71-
<span role="img" aria-label="write icon">✍</span><chakra.span ml={2}>Register</chakra.span>
71+
<span role="img" aria-label="write icon">
72+
✍
73+
</span>
74+
<chakra.span ml={2}>Register</chakra.span>
7275
</Button>
7376
);
7477
});

β€Žpackages/react-app/src/components/builder/BuilderProfileCard.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const BuilderProfileCard = ({ builder, mainnetProvider, isMyProfile, userProvide
100100
signMessage = await getUpdateSocialsSignMessage(address);
101101
} catch (error) {
102102
toast({
103-
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
103+
description: "Can't get the sign message from the server",
104104
status: "error",
105105
variant: toastVariant,
106106
});
@@ -160,7 +160,7 @@ const BuilderProfileCard = ({ builder, mainnetProvider, isMyProfile, userProvide
160160
signMessage = await getUpdateReachedOutFlagSignMessage(builder.id, reachedOut);
161161
} catch (error) {
162162
toast({
163-
description: " Sorry, the server is overloaded. πŸ§―πŸš’πŸ”₯",
163+
description: "Can't get the sign message from the server",
164164
status: "error",
165165
variant: toastVariant,
166166
});

0 commit comments

Comments
Β (0)