diff --git a/app/soapbox/components/column_back_button.js b/app/soapbox/components/column_back_button.js index bbc2fc701..54b700b63 100644 --- a/app/soapbox/components/column_back_button.js +++ b/app/soapbox/components/column_back_button.js @@ -16,10 +16,8 @@ export default class ColumnBackButton extends React.PureComponent { handleClick = () => { const { to } = this.props; - if (to) { - this.context.router.history.push(to); - } else if (window.history && window.history.length === 1) { - this.context.router.history.push('/'); + if (window.history && window.history.length === 1) { + this.context.router.history.push(to ? to : '/'); } else { this.context.router.history.goBack(); } diff --git a/app/soapbox/features/reactions/index.js b/app/soapbox/features/reactions/index.js index 260c8726b..4eca0880b 100644 --- a/app/soapbox/features/reactions/index.js +++ b/app/soapbox/features/reactions/index.js @@ -91,7 +91,7 @@ class Reactions extends ImmutablePureComponent { reactions.size > 0 && (
All - {reactions?.map(reaction => {reaction.name} {reaction.count})} + {reactions?.filter(reaction => reaction.count).map(reaction => {reaction.name} {reaction.count})}
) }