Fix bug where user can proceed without selecting an image varition (when multiple)

This commit is contained in:
Dana Lambert 2021-12-06 11:09:21 +13:00
parent 1b09723463
commit 405b6dc68c

View file

@ -66,6 +66,8 @@ export default function HabitatSelector(props) {
setSelectedHabitat(habitatObject)
if (habitatObject.images.length === 1) {
setHabitatImage(habitatObject.images[0].id)
} else {
props.setNextDisabled(true);
}
// Update the filters for the selected habitat