We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526c6e7 commit 6bd94f2Copy full SHA for 6bd94f2
1 file changed
components/steps/S2Username.tsx
@@ -63,7 +63,8 @@ const S2Username = () => {
63
}
64
}).catch(err => {
65
setIsUsernameError(true);
66
- toast.error(err.message)
+ setUsernameError(err.message);
67
+ setUserNameOK(false);
68
}).finally(() => {
69
setIsChecking(false);
70
})
@@ -108,13 +109,13 @@ const S2Username = () => {
108
109
{"<"}
110
</button>
111
- {userNameOK && !userNameCheckOK ?
112
+ {!userNameCheckOK ?
113
<button
114
onClick={handleUsernameCheck}
115
disabled={!userNameOK || isChecking}
116
className={`
117
btn-small rounded-full py-2 px-4
- ${userNameOK ? "bg-blue-500 text-white" : "bg-gray-400 text-gray-700"}
118
+ ${userNameOK ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-300"}
119
`}
120
tabIndex={2}
121
>
0 commit comments