0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00

use to step when not looking for all steps (#5793)

This commit is contained in:
Neil Kakkar 2021-09-02 13:14:33 +01:00 committed by GitHub
parent 9e2ff189f7
commit cfd7e586ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,7 +416,7 @@ export const funnelLogic = kea<funnelLogicType>({
: stepsWithCount[filters.funnel_from_step ?? 0]
const toStep = isAllSteps
? getLastFilledStep(stepsWithCount)
: stepsWithCount[filters.funnel_from_step ?? 0]
: stepsWithCount[filters.funnel_to_step ?? 0]
return {
averageTime: toStep?.average_conversion_time || 0,