🐛 Fix misc bugs
This commit is contained in:
@@ -47,7 +47,7 @@ export const AnalyticsGraphContainer = ({ stats }: { stats?: Stats }) => {
|
|||||||
typebot={publishedTypebot}
|
typebot={publishedTypebot}
|
||||||
onUnlockProPlanClick={onOpen}
|
onUnlockProPlanClick={onOpen}
|
||||||
answersCounts={
|
answersCounts={
|
||||||
answersCounts
|
answersCounts[0]
|
||||||
? [
|
? [
|
||||||
{ ...answersCounts[0], totalAnswers: stats?.totalStarts },
|
{ ...answersCounts[0], totalAnswers: stats?.totalStarts },
|
||||||
...answersCounts.slice(1),
|
...answersCounts.slice(1),
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export const DropOffEdge = ({
|
|||||||
}: Props) => {
|
}: Props) => {
|
||||||
const dropOffColor = useColorModeValue(
|
const dropOffColor = useColorModeValue(
|
||||||
theme.colors.red[500],
|
theme.colors.red[500],
|
||||||
theme.colors.red[300]
|
theme.colors.red[400]
|
||||||
)
|
)
|
||||||
const { workspace } = useWorkspace()
|
const { workspace } = useWorkspace()
|
||||||
const { groupsCoordinates } = useGroupsCoordinates()
|
const { groupsCoordinates } = useGroupsCoordinates()
|
||||||
|
|||||||
@@ -44,9 +44,7 @@ export const ResultModal = ({ resultIdx, onClose }: Props) => {
|
|||||||
{getHeaderValue(result[header.label])}
|
{getHeaderValue(result[header.label])}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
) : (
|
) : null
|
||||||
<></>
|
|
||||||
)
|
|
||||||
)}
|
)}
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { captureException } from '@sentry/nextjs'
|
|
||||||
import { SmtpCredentialsData } from 'models'
|
import { SmtpCredentialsData } from 'models'
|
||||||
import { NextApiRequest, NextApiResponse } from 'next'
|
import { NextApiRequest, NextApiResponse } from 'next'
|
||||||
import { createTransport } from 'nodemailer'
|
import { createTransport } from 'nodemailer'
|
||||||
@@ -30,7 +29,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
})
|
})
|
||||||
res.status(200).send({ message: 'Email sent!', info })
|
res.status(200).send({ message: 'Email sent!', info })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
captureException(err)
|
|
||||||
console.log(err)
|
console.log(err)
|
||||||
res.status(500).send(err)
|
res.status(500).send(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user