diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index 26102d6..4473887 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -398,22 +398,6 @@ export default function Home() { if (dist <= 1 || map_distance_override) { return ( <> - - { - queryClient.invalidateQueries({ queryKey: ["user"] }); - queryClient.invalidateQueries({ queryKey: ["user_status"] }); - queryClient.invalidateQueries({ - queryKey: ["user_status_list"], - }); - queryClient.invalidateQueries({ - queryKey: ["study_group_list"], - }); - }} - > - - - {buttonLabel} + + { + queryClient.invalidateQueries({ queryKey: ["user"] }); + queryClient.invalidateQueries({ + queryKey: ["user_status"], + }); + queryClient.invalidateQueries({ + queryKey: ["user_status_list"], + }); + queryClient.invalidateQueries({ + queryKey: ["study_group_list"], + }); + toast.show("Refreshed", { + type: "success", + placement: "top", + duration: 2000, + animationType: "slide-in", + }); + }} + > + + +