correct logic for early bail while container width thing is setting up
This commit is contained in:
Rua Haszard 2020-05-13 09:54:44 +12:00 committed by GitHub
parent 4cc81731fc
commit f822e8dbb5
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ import CheckoutOrderSummaryItem from './order-summary-item.js';
const CheckoutOrderSummary = ( { cartItems = [] } ) => {
const { isLarge, hasContainerWidth } = useContainerWidthContext();
if ( hasContainerWidth ) {
if ( ! hasContainerWidth ) {
return null;
}