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.
pull/366/head
Harvey Tindall 3 months ago
parent a1612949bf
commit 3559e32c2f
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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;

@ -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;

Loading…
Cancel
Save