questions renders corrent test on number param
This commit is contained in:
@ -42,9 +42,11 @@ export default contain(
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { tests: [test =[]] } = this.props;
|
const { tests } = this.props;
|
||||||
|
const { number = '1' } = this.props.params;
|
||||||
|
|
||||||
|
const [question, answer, info] = tests[number - 1] || [];
|
||||||
|
|
||||||
const [question, answer, info] = test;
|
|
||||||
return (
|
return (
|
||||||
<Col xs={ 12 }>
|
<Col xs={ 12 }>
|
||||||
<Row>
|
<Row>
|
||||||
|
Reference in New Issue
Block a user