mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Fix onboarding.
This commit is contained in:
@@ -28,7 +28,7 @@ export function OnboardingModal({ onClose, callback }: Props) {
|
||||
const onSubmit: SubmitHandler<FormInputs> = ({ username }) => {
|
||||
setLoading(true);
|
||||
callback(username, true)
|
||||
.then(onClose)
|
||||
.then(() => onClose())
|
||||
.catch((err: any) => {
|
||||
setError(takeError(err));
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user