Skip to content

Commit b019673

Browse files
committed
hotfix: prevent app crash on PDP page.
Signed-off-by: Will Lopez <[email protected]>
1 parent 9b5d8ac commit b019673

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)