diff --git a/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/shuffle.tsx b/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/shuffle.tsx index 3cef50b7730..14c28d0516b 100644 --- a/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/shuffle.tsx +++ b/plugins/woocommerce-admin/client/customize-store/assembler-hub/toolbar/shuffle.tsx @@ -106,7 +106,8 @@ export default function Shuffle( { clientId }: { clientId: string } ) { // @ts-expect-error missing type const { replaceBlocks } = useDispatch( blockEditorStore ); - if ( patterns.length === 0 ) { + // We need at least two patterns to shuffle. + if ( patterns.length < 2 ) { return null; } diff --git a/plugins/woocommerce/changelog/49790-fix-hide-shuffle-icon b/plugins/woocommerce/changelog/49790-fix-hide-shuffle-icon new file mode 100644 index 00000000000..df1445cd1bf --- /dev/null +++ b/plugins/woocommerce/changelog/49790-fix-hide-shuffle-icon @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +CYS: Hide shuffle button when only one pattern is available \ No newline at end of file