fix: back button label validation (#6916)

This commit is contained in:
Dhruwang Jariwala
2025-12-01 17:39:50 +05:30
committed by GitHub
parent a535529bd3
commit a6ee796cef

View File

@@ -1355,7 +1355,10 @@ export const ZSurvey = z
}
}
//only validate back button label for blocks other than the first one and if back button is not hidden
if (
!isBackButtonHidden &&
blockIndex > 0 &&
block.backButtonLabel?.[defaultLanguageCode] &&
block.backButtonLabel[defaultLanguageCode].trim() !== ""
) {