mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
more syntactic sugar
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
parent
11ecb4ca54
commit
b664259e2d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue