Fix selection value from RadioButtons (#4636)
* Fix selection value from RadioButtons * Fix outdated test
This commit is contained in:
parent
3df1adc3f5
commit
e66d54910a
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user