Fix danger appearing for "Follow" too 😆

This commit is contained in:
Lim Chee Aun 2022-12-28 00:15:27 +08:00
parent e8a0b401f9
commit abb7f11c12

View file

@ -198,7 +198,7 @@ function Account({ account }) {
<button
type="button"
class={`${following ? 'light' : ''} swap`}
data-swap-state="danger"
data-swap-state={following ? 'danger' : ''}
disabled={relationshipUIState === 'loading'}
onClick={() => {
setRelationshipUIState('loading');