Skip to content

Commit bcf5812

Browse files
authored
Merge pull request #552 from reactioncommerce/hotfix-prevent-app-crash-on-pdp
hotfix: prevent app crash on PDP page.
2 parents 9b5d8ac + b019673 commit bcf5812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VariantList/VariantList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class VariantList extends Component {
8686
}
8787

8888
// If we don't have an option, use the variant for inventory status information
89-
if (selectedVariantId) {
89+
if (selectedVariant && selectedVariantId) {
9090
return <InventoryStatus product={selectedVariant} />;
9191
}
9292

0 commit comments

Comments
 (0)