Show error in UI when registration fails (#48)
This commit is contained in:
parent
eb61c6b5e6
commit
d0bfd9a10f
|
|
@ -33,6 +33,8 @@
|
|||
authInProcess = true
|
||||
|
||||
registrationSuccess = await register(username)
|
||||
|
||||
if (!registrationSuccess) authInProcess = false
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -89,6 +89,8 @@ export const isUsernameAvailable = async (
|
|||
export const register = async (username: string): Promise<boolean> => {
|
||||
const { success } = await webnative.account.register({ username })
|
||||
|
||||
if (!success) return success
|
||||
|
||||
const fs = await webnative.bootstrapRootFileSystem()
|
||||
filesystemStore.set(fs)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue