Skip to content

Commit 3b8a858

Browse files
Fix typo in TnC signing error message and improve error handling in TnCModal component
1 parent e78344d commit 3b8a858

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/TncModal.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,17 @@ const TncModal: React.FC<TncModalProps> = (props) => {
153153
try {
154154
if (!address) {
155155
if (!address) {
156-
toast.error('No Address to sing TnC');
156+
toast.error('No Address to sign TnC');
157157
}
158158

159159
return;
160160
}
161161
mixpanel.track('TnC agreed', { address });
162162

163-
toast.success('TnC Signing Started');
164-
165163
setIsSigningPending(true);
166164
signTypedData();
167165
} catch (error) {
166+
toast.error('TnC Signing Error');
168167
console.log('TnC Signing Error', error);
169168
}
170169
};

0 commit comments

Comments
 (0)