Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(calendar): correct token test response field check

Adam Eivy82d53e9fc48b
diff --git a/client/src/components/calendar/SyncTab.jsx b/client/src/components/calendar/SyncTab.jsx
index 184aedf0b7..7b31b26953 100644
--- a/client/src/components/calendar/SyncTab.jsx
+++ b/client/src/components/calendar/SyncTab.jsx
@@ -51,7 +51,7 @@ export default function SyncTab({ accounts, onRefresh }) {
const handleTestToken = async (provider) => {
const result = await api.testCalendarToken(provider).catch(() => null);
- if (result?.valid) {
+ if (result?.token) {
toast.success(`${provider} token is valid`);
} else {
toast.error(`${provider} token is invalid or expired`);