diff --git a/packages/components/src/product-icon/config.js b/packages/components/src/product-icon/config.js index 2896fe046d6b57..377d6c7213ac23 100644 --- a/packages/components/src/product-icon/config.js +++ b/packages/components/src/product-icon/config.js @@ -43,6 +43,6 @@ export const iconToProductSlugMap = { 'jetpack-backup-realtime': [ 'jetpack_backup_realtime', 'jetpack_backup_realtime_monthly' ], }; -export const supportedSlugs = [ ...Object.values( iconToProductSlugMap ) ].reduce( ( a, b ) => - a.concat( b ) -); +export const supportedSlugs = Object.values( + iconToProductSlugMap +).reduce( ( flattenedSlugs, slugs ) => flattenedSlugs.concat( slugs ) );