Merge pull request #584 from coxde/patch-1

fix: enable/disable boosts button logic
This commit is contained in:
Chee Aun 2024-06-27 22:00:01 +08:00 committed by GitHub
commit 87be0cad16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1159,8 +1159,8 @@ function RelatedActions({
setRelationshipUIState('default'); setRelationshipUIState('default');
showToast( showToast(
rel.showingReblogs rel.showingReblogs
? `Boosts from @${username} disabled.` ? `Boosts from @${username} enabled.`
: `Boosts from @${username} enabled.`, : `Boosts from @${username} disabled.`,
); );
} catch (e) { } catch (e) {
alert(e); alert(e);