mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
More de-overloading of 'terms'
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
parent
6fafd208a8
commit
c2977ddd8e
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ export async function startTermsFlow(services, interactionCallback) {
|
|||
// (one URL may be used for multiple services)
|
||||
// Not a particularly efficient loop but probably fine given the numbers involved
|
||||
const urlsForService = agreedUrls.filter((url) => {
|
||||
for (const terms of Object.values(termsAndService.terms)) {
|
||||
for (const policy of Object.values(policiesAndService)) {
|
||||
for (const lang of Object.keys(terms)) {
|
||||
if (lang === 'version') continue;
|
||||
if (terms[lang].url === url) return true;
|
||||
|
|
Loading…
Reference in a new issue