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.
This commit is contained in:
Harvey Tindall
2024-08-29 12:14:43 +01:00
parent a1612949bf
commit 3559e32c2f
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -1510,7 +1510,6 @@ export class accountsList {
let innerHTML = "";
let invites = req.response["invites"] as Array<Invite>;
window.availableProfiles = req.response["profiles"];
if (invites) {
for (let inv of invites) {
let name = inv.code;
-1
View File
@@ -285,7 +285,6 @@ export class ProfileEditor {
let innerHTML = "";
let invites = req.response["invites"] as Array<Invite>;
window.availableProfiles = req.response["profiles"];
if (invites) {
for (let inv of invites) {
let name = inv.code;