Fix bug not setting new spotify account as active

This commit is contained in:
Phlogi
2025-08-21 20:52:39 +02:00
parent 0456c25830
commit 7a51c44633
2 changed files with 15 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ export function AccountsTab() {
onSuccess: () => {
toast.success("Account added successfully!");
queryClient.invalidateQueries({ queryKey: ["credentials", activeService] });
queryClient.invalidateQueries({ queryKey: ["config"] }); // Invalidate config to update active Spotify account in UI
setIsAdding(false);
setSubmitError(null);
reset();