diff --git a/js/src/modals/CreateAccount/CreationType/creationType.js b/js/src/modals/CreateAccount/CreationType/creationType.js index 7019c4964..666b63b67 100644 --- a/js/src/modals/CreateAccount/CreationType/creationType.js +++ b/js/src/modals/CreateAccount/CreationType/creationType.js @@ -136,9 +136,9 @@ export default class CreationType extends Component { ); } - onChange = (event) => { + onChange = (item, type) => { const { store } = this.props; - store.setCreateType(event.target.value); + store.setCreateType(type); } } diff --git a/js/src/modals/CreateAccount/CreationType/creationType.spec.js b/js/src/modals/CreateAccount/CreationType/creationType.spec.js index 14d45c3ab..60a75f580 100644 --- a/js/src/modals/CreateAccount/CreationType/creationType.spec.js +++ b/js/src/modals/CreateAccount/CreationType/creationType.spec.js @@ -65,7 +65,7 @@ describe('modals/CreateAccount/CreationType', () => { describe('events', () => { describe('onChange', () => { beforeEach(() => { - component.instance().onChange({ target: { value: 'testing' } }); + component.instance().onChange(null, 'testing'); }); it('changes the store createType', () => {