Fix bug where user can proceed without selecting an image varition (when multiple)
This commit is contained in:
parent
1b09723463
commit
405b6dc68c
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ export default function HabitatSelector(props) {
|
||||||
setSelectedHabitat(habitatObject)
|
setSelectedHabitat(habitatObject)
|
||||||
if (habitatObject.images.length === 1) {
|
if (habitatObject.images.length === 1) {
|
||||||
setHabitatImage(habitatObject.images[0].id)
|
setHabitatImage(habitatObject.images[0].id)
|
||||||
|
} else {
|
||||||
|
props.setNextDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the filters for the selected habitat
|
// Update the filters for the selected habitat
|
||||||
|
|
Loading…
Reference in a new issue