Fix selection value from RadioButtons (#4636)

* Fix selection value from RadioButtons

* Fix outdated test
This commit is contained in:
Jaco Greeff 2017-02-22 15:57:21 +01:00 committed by GitHub
parent 3df1adc3f5
commit e66d54910a
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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', () => {