Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-08 21:19:36 +08:00
parent 6f95456d20
commit db30aa8041
2 changed files with 3 additions and 9 deletions

View File

@@ -221,10 +221,10 @@ class _MemberPageState extends State<MemberPage> {
isFollow: isFollow,
);
if (res.isSuccess) {
if (!context.mounted) return;
e
..total += isFollow ? -1 : 1
..isFollow = !isFollow;
if (!context.mounted) return;
(context as Element).markNeedsBuild();
} else {
res.toast();