From 03cb76861f42d0b8e06555c0cb80df515032d74d Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 17 Jan 2020 16:26:47 +0000 Subject: [PATCH] Catch exception in checkTerms if no ID server This line will throw if it can't get to the ID server, so move it inside the catch block too. --- .../views/settings/tabs/user/GeneralUserSettingsTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js b/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js index 908968b051..b9eaa3efa3 100644 --- a/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js +++ b/src/components/views/settings/tabs/user/GeneralUserSettingsTab.js @@ -160,8 +160,8 @@ export default class GeneralUserSettingsTab extends React.Component { // for free. So we might as well use that for our own purposes. const idServerUrl = MatrixClientPeg.get().getIdentityServerUrl(); const authClient = new IdentityAuthClient(); - const idAccessToken = await authClient.getAccessToken({ check: false }); try { + const idAccessToken = await authClient.getAccessToken({ check: false }); await startTermsFlow([new Service( SERVICE_TYPES.IS, idServerUrl,