only pass in longestLabel to button if a user is following someone

This commit is contained in:
Sean Yesmunt 2020-04-21 09:44:12 -04:00
parent a18caa636b
commit fc9d81eeaa

View file

@ -56,7 +56,7 @@ export default function SubscribeButton(props: Props) {
<Button
ref={buttonRef}
iconColor="red"
largestLabel={longestStr}
largestLabel={isSubscribed ? longestStr : undefined}
icon={unfollowOverride ? ICONS.UNSUBSCRIBE : ICONS.SUBSCRIBE}
button={'alt'}
requiresAuth={IS_WEB}