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 = {
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue