Turn terms and conditions off if text is empty
This commit is contained in:
parent
c5398c4b86
commit
371454b6d4
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = {
|
const response = {
|
||||||
error: null,
|
error: null,
|
||||||
|
|
@ -85,7 +85,7 @@ function poll (req, res, next) {
|
||||||
crossRefVerificationThreshold: config.crossRefVerificationThreshold,
|
crossRefVerificationThreshold: config.crossRefVerificationThreshold,
|
||||||
frontCameraVerificationActive: config.frontCameraVerificationActive,
|
frontCameraVerificationActive: config.frontCameraVerificationActive,
|
||||||
frontCameraVerificationThreshold: config.frontCameraVerificationThreshold,
|
frontCameraVerificationThreshold: config.frontCameraVerificationThreshold,
|
||||||
terms: terms,
|
terms,
|
||||||
cassettes,
|
cassettes,
|
||||||
twoWayMode: config.cashOutEnabled,
|
twoWayMode: config.cashOutEnabled,
|
||||||
zeroConfLimit: config.zeroConfLimit,
|
zeroConfLimit: config.zeroConfLimit,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue