mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
fix model
This commit is contained in:
parent
74ab7b8e57
commit
ba7e7ed4fa
@ -2,6 +2,7 @@ import React from "react"
|
|||||||
import * as antd from "antd"
|
import * as antd from "antd"
|
||||||
|
|
||||||
import UserModel from "models/user"
|
import UserModel from "models/user"
|
||||||
|
import AuthModel from "models/auth"
|
||||||
|
|
||||||
import { StepsForm } from "components"
|
import { StepsForm } from "components"
|
||||||
import { Icons } from "components/Icons"
|
import { Icons } from "components/Icons"
|
||||||
@ -340,7 +341,7 @@ const steps = [
|
|||||||
|
|
||||||
export default (props) => {
|
export default (props) => {
|
||||||
const onSubmit = async (values) => {
|
const onSubmit = async (values) => {
|
||||||
const result = await UserModel.register(values).catch((error) => {
|
const result = await AuthModel.register(values).catch((error) => {
|
||||||
throw new Error(`Failed to register user: ${error.message}`)
|
throw new Error(`Failed to register user: ${error.message}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user