diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/community-form.tsx | 5 | ||||
-rw-r--r-- | ui/src/components/login.tsx | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 66071a3f..5effa73a 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -120,7 +120,10 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt if (i.props.community) { WebSocketService.Instance.editCommunity(i.state.communityForm); } else { - WebSocketService.Instance.createCommunity(i.state.communityForm); + + setTimeout(function(){ + WebSocketService.Instance.createCommunity(i.state.communityForm); + }, 10000); } i.setState(i.state); } diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index f86faa2e..2a9f8d7d 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -157,7 +157,9 @@ export class Login extends Component<any, State> { i.state.registerLoading = true; i.setState(i.state); event.preventDefault(); - WebSocketService.Instance.register(i.state.registerForm); + setTimeout(function(){ + WebSocketService.Instance.register(i.state.registerForm); + }, 10000); } handleRegisterUsernameChange(i: Login, event: any) { |