From b664259e2dcac09a87081193ddaf946e2da5e493 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 22 Jul 2019 12:23:55 +0100 Subject: [PATCH] more syntactic sugar 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 6e2261bd58..401123f712 100644 --- a/src/Terms.js +++ b/src/Terms.js @@ -124,7 +124,7 @@ export async function startTermsFlow(services, interactionCallback) { // if there's anything left to agree to, prompt the user if (unagreedPoliciesAndServicePairs.length > 0) { - const newlyAgreedUrls = await interactionCallback(unagreedPoliciesAndServicePairs, Array.from(agreedUrlSet)); + const newlyAgreedUrls = await interactionCallback(unagreedPoliciesAndServicePairs, [...agreedUrlSet]); console.log("User has agreed to URLs", newlyAgreedUrls); agreedUrlSet = new Set(newlyAgreedUrls); } else {