🐛 (analytics) Fix analytics drop-off rate not computing correctly
This commit is contained in:
@ -18,7 +18,10 @@ export const computePreviousTotalAnswers = (
|
|||||||
)
|
)
|
||||||
const previousBlocks = currentGroup.blocks.slice(0, currentBlockIndex + 1)
|
const previousBlocks = currentGroup.blocks.slice(0, currentBlockIndex + 1)
|
||||||
for (const block of previousBlocks.reverse()) {
|
for (const block of previousBlocks.reverse()) {
|
||||||
if (isInputBlock(block) || block.type === 'start')
|
if (
|
||||||
|
currentBlockId !== block.id &&
|
||||||
|
(isInputBlock(block) || block.type === 'start')
|
||||||
|
)
|
||||||
return (
|
return (
|
||||||
totalAnswersInBlocks.find(
|
totalAnswersInBlocks.find(
|
||||||
(totalAnswersInBlock) =>
|
(totalAnswersInBlock) =>
|
||||||
|
Reference in New Issue
Block a user