fix: terms and conditions null safety
This commit is contained in:
parent
5d89211225
commit
b90d8df4de
2 changed files with 3 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ const md5hash = text =>
|
|||
|
||||
const addTermsHash = configs => {
|
||||
const terms = _.omit(['hash'], getTermsConditions(configs))
|
||||
return _.isEmpty(terms) ?
|
||||
return !terms?.text ?
|
||||
configs :
|
||||
_.flow(
|
||||
_.get('text'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue