From 3559e32c2ff439b7b3506877386f4853c30b3c9b Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 29 Aug 2024 12:14:43 +0100 Subject: [PATCH] accounts: fix profile list for enabling referrals when I moved the available profile list from GET(/invites) to GET(/profiles/names), I forgot to remove the multiple places which called the former and set the (now undefined) profiles value. --- ts/modules/accounts.ts | 1 - ts/modules/profiles.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index 034d85e..8205a6f 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -1510,7 +1510,6 @@ export class accountsList { let innerHTML = ""; let invites = req.response["invites"] as Array; - window.availableProfiles = req.response["profiles"]; if (invites) { for (let inv of invites) { let name = inv.code; diff --git a/ts/modules/profiles.ts b/ts/modules/profiles.ts index bc68684..e58fb27 100644 --- a/ts/modules/profiles.ts +++ b/ts/modules/profiles.ts @@ -285,7 +285,6 @@ export class ProfileEditor { let innerHTML = ""; let invites = req.response["invites"] as Array; - window.availableProfiles = req.response["profiles"]; if (invites) { for (let inv of invites) { let name = inv.code;