Addressing style bug in FlagButton.

This commit is contained in:
David Jay
2016-11-18 11:51:08 -05:00
parent 2e6700e490
commit b14bd02de6
+1 -1
View File
@@ -31,7 +31,7 @@ const FlagButton = ({flag, id, postAction, deleteAction, addItem, updateItem, ad
: <span className={`${name}-button-text`}>{lang.t('flag')}</span>
}
<i className={`${name}-icon material-icons ${flagged && 'flaggedIcon'}`}
style={flagged && styles.flaggedIcon}
style={flagged ? styles.flaggedIcon : {}}
aria-hidden={true}>flag</i>
</button>
</div>;