Skip to content

Commit

Permalink
[RNMobile] Correct where appender condition is placed (#26203)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored and ceyhun committed Oct 16, 2020
1 parent e1cbcf7 commit 4b76ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/buttons/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function ButtonsEdit( {
const { align } = attributes;
const [ resizeObserver, sizes ] = useResizeObserver();
const [ maxWidth, setMaxWidth ] = useState( 0 );
const shouldRenderFooterAppender = isSelected || isInnerButtonSelected;
const { marginLeft: spacing } = styles.spacing;

useEffect( () => {
Expand All @@ -62,6 +61,8 @@ function ButtonsEdit( {
isEmbedButton: true,
};

const shouldRenderFooterAppender = isSelected || isInnerButtonSelected;

return (
<AlignmentHookSettingsProvider value={ alignmentHooksSetting }>
{ resizeObserver }
Expand Down

0 comments on commit 4b76ea8

Please sign in to comment.