Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update apps/web/lib/integrations/hubspot/refresh-token.ts

Kiran Kcfde5145b51d
diff --git a/apps/web/lib/integrations/hubspot/refresh-token.ts b/apps/web/lib/integrations/hubspot/refresh-token.ts
index 040e3b345a..7861f5ca18 100644
--- a/apps/web/lib/integrations/hubspot/refresh-token.ts
+++ b/apps/web/lib/integrations/hubspot/refresh-token.ts
@@ -57,7 +57,7 @@ export async function refreshAccessToken({
} catch (error) {
console.error(
"[HubSpot] Error refreshing the access token:",
- error.message,
+ error instanceof Error ? error.message : String(error),
);
return null;
}