From c2977ddd8ee18c451816421d83992533611eeed5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 10 Jul 2019 14:28:45 +0100 Subject: [PATCH] More de-overloading of 'terms' Co-Authored-By: J. Ryan Stinnett --- src/Terms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terms.js b/src/Terms.js index 420b622529..c9147e19e5 100644 --- a/src/Terms.js +++ b/src/Terms.js @@ -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;