Ensure order summary is displayed :) - (https://github.com/woocommerce/woocommerce-blocks/pull/2470)
correct logic for early bail while container width thing is setting up
This commit is contained in:
parent
4cc81731fc
commit
f822e8dbb5
|
@ -15,7 +15,7 @@ import CheckoutOrderSummaryItem from './order-summary-item.js';
|
|||
const CheckoutOrderSummary = ( { cartItems = [] } ) => {
|
||||
const { isLarge, hasContainerWidth } = useContainerWidthContext();
|
||||
|
||||
if ( hasContainerWidth ) {
|
||||
if ( ! hasContainerWidth ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue