From 9027647fa0a388e281fe14d948a081009f7acb12 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Thu, 15 May 2025 09:58:30 -0400 Subject: [PATCH] Smoother account sync refreshes --- app/models/account/sync_complete_event.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/account/sync_complete_event.rb b/app/models/account/sync_complete_event.rb index 3ef95507..2a64ab80 100644 --- a/app/models/account/sync_complete_event.rb +++ b/app/models/account/sync_complete_event.rb @@ -6,9 +6,6 @@ class Account::SyncCompleteEvent end def broadcast - # Refresh entire account page (only applies if currently viewing this account) - account.broadcast_refresh - # Replace account row in accounts list account.broadcast_replace_to( account.family, @@ -32,6 +29,9 @@ class Account::SyncCompleteEvent unless account.linked? account.family.broadcast_sync_complete end + + # Refresh entire account page (only applies if currently viewing this account) + account.broadcast_refresh end private