Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/api/dev-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ module.exports = function setupRoutes(app) {
{ name: 'amplitude', value: process.env.AMPLITUDE_API_KEY },
{ name: 'reo', value: process.env.REO_API_KEY },
{ name: 'delighted', value: process.env.DELIGHTED_API_KEY },
{ name: 'capterraKey', value: process.env.CAPTERRA_API_KEY },
{ name: 'hideInviteLinks', value: envToBool('DISABLE_INVITE_LINKS', false) },
{ name: 'linkedinPartnerTracking', value: envToBool('LINKEDIN_PARTNER_TRACKING', false) },
{ name: 'albacross', value: process.env.ALBACROSS_CLIENT_ID },
Expand Down
1 change: 0 additions & 1 deletion frontend/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ app.get('/config/project-overrides', (req, res) => {
{ name: 'amplitude', value: process.env.AMPLITUDE_API_KEY },
{ name: 'reo', value: process.env.REO_API_KEY },
{ name: 'delighted', value: process.env.DELIGHTED_API_KEY },
{ name: 'capterraKey', value: process.env.CAPTERRA_API_KEY },
{
name: 'hideInviteLinks',
value: envToBool('DISABLE_INVITE_LINKS', false),
Expand Down
5 changes: 0 additions & 5 deletions frontend/common/utils/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ export const planNames = {
import BaseUtils from './base/_utils'
import { copyToClipboard } from './copyToClipboard'
const Utils = Object.assign({}, BaseUtils, {
appendImage: (src: string) => {
const img = document.createElement('img')
img.src = src
document.body.appendChild(img)
},
calculateControl(
multivariateOptions: MultivariateOption[],
variations?: MultivariateFeatureStateValue[],
Expand Down
7 changes: 0 additions & 7 deletions frontend/web/components/modals/CreateOrganisation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Button from 'components/base/forms/Button'
import InputGroup from 'components/base/forms/InputGroup'
import API from 'project/api'
import { FC, useState } from 'react'
import Project from 'common/project'
import { organisationService } from 'common/services/useOrganisation'
import { getStore } from 'common/store'

Expand Down Expand Up @@ -34,12 +33,6 @@ const CreateOrganisationModal: FC = () => {
<form
onSubmit={(e) => {
e.preventDefault()
if (Project.capterraKey) {
const parts = Project.capterraKey.split(',')
Utils.appendImage(
`https://ct.capterra.com/capterra_tracker.gif?vid=${parts[0]}&vkey=${parts[1]}`,
)
}
createOrganisation(name)
}}
>
Expand Down
6 changes: 0 additions & 6 deletions frontend/web/components/pages/CreateOrganisationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ const CreateOrganisationPage: React.FC = () => {
<form
onSubmit={(e) => {
e.preventDefault()
if (Project.capterraKey) {
const parts = Project.capterraKey.split(',')
Utils.appendImage(
`https://ct.capterra.com/capterra_tracker.gif?vid=${parts[0]}&vkey=${parts[1]}`,
)
}
AppActions.createOrganisation(
name,
getStoredOnboardingTargetingKey() ?? undefined,
Expand Down
Loading