mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-06 11:20:56 -05:00
fix: recall not working for NPS question (#5895)
This commit is contained in:
committed by
GitHub
parent
d9ca64da54
commit
10ccc20b53
@@ -48,7 +48,7 @@ export const replaceRecallInfo = (
|
||||
}
|
||||
|
||||
// Fetching value from responseData or attributes based on recallItemId
|
||||
if (responseData[recallItemId]) {
|
||||
if (responseData[recallItemId] !== undefined) {
|
||||
value = (responseData[recallItemId] as string) ?? fallback;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ export const replaceRecallInfo = (
|
||||
}
|
||||
|
||||
// Replace the recallInfo in the text with the obtained or fallback value
|
||||
modifiedText = modifiedText.replace(recallInfo, value || fallback);
|
||||
modifiedText = modifiedText.replace(recallInfo, value?.toString() || fallback);
|
||||
}
|
||||
|
||||
return modifiedText;
|
||||
|
||||
Reference in New Issue
Block a user