Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f7096108f0 | |||
| d5ca679865 | |||
| 9362d110a5 | |||
| 2e94702ec2 | |||
| 709caf208a | |||
| 73f456ed00 |
@@ -29,8 +29,8 @@ export class ProfileService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadSubmitted() {
|
loadSubmitted() {
|
||||||
if (this.profiles) {
|
if (this.profiles && this.profiles.submitted) {
|
||||||
return Promise.resolve(this.profiles);
|
return Promise.resolve(this.profiles.submitted);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
@@ -39,8 +39,8 @@ export class ProfileService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadVerified() {
|
loadVerified() {
|
||||||
if (this.profiles) {
|
if (this.profiles && this.profiles.verified) {
|
||||||
return Promise.resolve(this.profiles);
|
return Promise.resolve(this.profiles.verified);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
@@ -55,7 +55,7 @@ export class ProfileService {
|
|||||||
data => {
|
data => {
|
||||||
this.profiles = {};
|
this.profiles = {};
|
||||||
this.profiles[type] = data;
|
this.profiles[type] = data;
|
||||||
this.profiles.reduce((map, profile, i) => {
|
this.profiles[type].reduce((map, profile, i) => {
|
||||||
map[profile._id] = i;
|
map[profile._id] = i;
|
||||||
return map;
|
return map;
|
||||||
}, this.idMap[type]);
|
}, this.idMap[type]);
|
||||||
|
|||||||
Reference in New Issue
Block a user