Fix danger appearing for "Follow" too 😆

pull/38/head
Lim Chee Aun 2022-12-28 00:15:27 +08:00
rodzic e8a0b401f9
commit abb7f11c12
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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');