mirror of https://github.com/vector-im/riot-web
more syntactic sugar
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>pull/21833/head
parent
11ecb4ca54
commit
b664259e2d
|
@ -124,7 +124,7 @@ export async function startTermsFlow(services, interactionCallback) {
|
||||||
|
|
||||||
// if there's anything left to agree to, prompt the user
|
// if there's anything left to agree to, prompt the user
|
||||||
if (unagreedPoliciesAndServicePairs.length > 0) {
|
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);
|
console.log("User has agreed to URLs", newlyAgreedUrls);
|
||||||
agreedUrlSet = new Set(newlyAgreedUrls);
|
agreedUrlSet = new Set(newlyAgreedUrls);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue