diff --git a/apps/web/lib/webhooks/integrationTemplate.tsx b/apps/web/lib/webhooks/integrationTemplate.tsx index 6c9c9f9c27..a461789cb9 100644 --- a/apps/web/lib/webhooks/integrationTemplate.tsx +++ b/apps/web/lib/webhooks/integrationTemplate.tsx @@ -8,7 +8,7 @@ export const hasTemplateIntegration = (props: WebhookIntegrationProps) => { const ind = supportedWebhookIntegrationList.findIndex((integration) => { return props.url.includes(integration); }); - return ind > -1 ? true : false; + return ind > -1; }; const customTemplate = (props: WebhookIntegrationProps) => { diff --git a/apps/web/pages/api/import/savvycal.ts b/apps/web/pages/api/import/savvycal.ts index 4e5a809132..fd5e5c3ef7 100644 --- a/apps/web/pages/api/import/savvycal.ts +++ b/apps/web/pages/api/import/savvycal.ts @@ -57,7 +57,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) slug: eventType.slug, length: eventType.durations[0], description: eventType.description.replace(/<[^>]*>?/gm, ""), - hidden: eventType.state === "active" ? true : false, + hidden: eventType.state === "active", users: { connect: { id: authenticatedUser.id,