Skip to content

Commit

Permalink
Simplify some tidbits
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue authored Jun 4, 2020
1 parent d1514b0 commit ac81eca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions inc/features/blocks/personalization-variant/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export default compose(
const rootClientId = getBlockRootClientId( clientId );

return {
onSelect: () => {
selectBlock( rootClientId );
},
onSelect: () => selectBlock( rootClientId ),
};
} ),
)( Edit );
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const VariantTitle = ( { variant } ) => {
return select( 'audience' ).getPost( variant.attributes.audience );
}, [ variant.attributes.audience ] );

const isLoading = useSelect( select => {
return select( 'audience' ).getIsLoading();
}, [] );
const isLoading = useSelect( select => select( 'audience' ).getIsLoading(), [] );

if ( variant.attributes.fallback ) {
return __( 'Fallback', 'altis-experiments' );
Expand Down

0 comments on commit ac81eca

Please sign in to comment.