Open-source personal finance manager. Self-hosted, privacy-first.
fix(accounts): spin sync icon only on the account being synced (#367)
Tássio Noronha01d83280c4c6
diff --git a/frontend/src/pages/accounts.tsx b/frontend/src/pages/accounts.tsxindex c912ea7a..d2cbd029 100644--- a/frontend/src/pages/accounts.tsx+++ b/frontend/src/pages/accounts.tsx@@ -373,9 +373,9 @@ export default function AccountsPage() {size="sm"className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground"onClick={() => syncMutation.mutate(conn.id)}- disabled={syncMutation.isPending}+ disabled={syncMutation.isPending && syncMutation.variables === conn.id}>- <RefreshCw size={14} className={syncMutation.isPending ? 'animate-spin' : ''} />+ <RefreshCw size={14} className={syncMutation.isPending && syncMutation.variables === conn.id ? 'animate-spin' : ''} /></Button><Buttonvariant="ghost"