diff --git a/src/models/register.js b/src/models/register.js index 54c49633e5fc0a9f9e3908c3e3dbe25e565c210b..57a97838d693532283476509391bfb3080e5ddc1 100644 --- a/src/models/register.js +++ b/src/models/register.js @@ -10,8 +10,8 @@ export default { }, effects: { - *submit(_, { call, put }) { - const response = yield call(fakeRegister); + *submit({ payload }, { call, put }) { + const response = yield call(fakeRegister, payload); yield put({ type: 'registerHandle', payload: response,