Turn terms and conditions off if text is empty

This commit is contained in:
Rafael Taranto 2019-07-15 21:21:00 +01:00 committed by Josh Harvey
parent c5398c4b86
commit 371454b6d4

View file

@ -64,7 +64,7 @@ function poll (req, res, next) {
}
}
const terms = config.termsScreenActive ? createTerms(config) : null
const terms = config.termsScreenActive && config.termsScreenText ? createTerms(config) : null
const response = {
error: null,
@ -85,7 +85,7 @@ function poll (req, res, next) {
crossRefVerificationThreshold: config.crossRefVerificationThreshold,
frontCameraVerificationActive: config.frontCameraVerificationActive,
frontCameraVerificationThreshold: config.frontCameraVerificationThreshold,
terms: terms,
terms,
cassettes,
twoWayMode: config.cashOutEnabled,
zeroConfLimit: config.zeroConfLimit,