From 0ec57b58e861aae1bb7c542e06d808ab68cfcf16 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 10 Jul 2019 14:27:29 +0100 Subject: [PATCH] Make 'terms' term less overloaded 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 ca19d4b590..a726d1ecb8 100644 --- a/src/Terms.js +++ b/src/Terms.js @@ -59,7 +59,7 @@ export async function startTermsFlow(services, interactionCallback) { ); const terms = await Promise.all(termsPromises); - const termsAndServices = terms.map((t, i) => { return { 'service': services[i], 'terms': t.policies }; }); + const policiesAndServicePairs = terms.map((t, i) => { return { 'service': services[i], 'policies': t.policies }; }); const agreedUrls = await interactionCallback(termsAndServices); console.log("User has agreed to URLs", agreedUrls);