Fixed "Unexpected negated condition" error
This commit is contained in:
parent
154807d4be
commit
4e1b6ad8b3
|
@ -99,16 +99,16 @@ export const AuthorCard = (props: Props) => {
|
|||
const followButtonText = () => {
|
||||
if (isSubscribing()) {
|
||||
return t('subscribing...')
|
||||
}
|
||||
|
||||
return !subscribed() ? (
|
||||
t('Follow')
|
||||
) : (
|
||||
} else if (subscribed()) {
|
||||
return (
|
||||
<>
|
||||
<span class={styles.buttonSubscribeLabel}>{t('Following')}</span>
|
||||
<span class={styles.buttonSubscribeLabelHovered}>{t('Unfollow')}</span>
|
||||
</>
|
||||
)
|
||||
} else {
|
||||
return t('Follow')
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue
Block a user