From 74eafa59e130fe7776570d13e73db91d070694c1 Mon Sep 17 00:00:00 2001 From: Moulibrota Das Date: Tue, 13 Feb 2024 12:02:21 +0530 Subject: [PATCH] fix: loading animation of update buttons (#13131) * fixed loading animation of update buttons * Update BookerLayoutSelector.tsx * fix: update button animation in settings appearance page * Update appearance.tsx * Update appearance.tsx --------- Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Co-authored-by: Keith Williams Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- apps/web/pages/settings/my-account/appearance.tsx | 6 ++++++ packages/features/settings/BookerLayoutSelector.tsx | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/settings/my-account/appearance.tsx b/apps/web/pages/settings/my-account/appearance.tsx index d1031eca1a..2bc76c2126 100644 --- a/apps/web/pages/settings/my-account/appearance.tsx +++ b/apps/web/pages/settings/my-account/appearance.tsx @@ -139,6 +139,9 @@ const AppearanceView = ({ showToast(t("error_updating_settings"), "error"); } }, + onSettled: async () => { + await utils.viewer.me.invalidate(); + }, }); return ( @@ -184,6 +187,7 @@ const AppearanceView = ({