fix profile error
parent
f4b7c9b5af
commit
6e13fcf8bc
|
@ -1,3 +1,4 @@
|
|||
import { IfStmt } from '@angular/compiler';
|
||||
import { Injectable } from '@angular/core';
|
||||
import RAYCONNECT from 'rayconnect-client';
|
||||
import { Profile } from './rayconnect.interface';
|
||||
|
@ -63,7 +64,9 @@ export class Rayconnect extends RAYCONNECT {
|
|||
console.log(res)
|
||||
|
||||
this.profile = {}
|
||||
this.profile.profile = <any>res['data']['result'];
|
||||
if (res['data']['result']) {
|
||||
this.profile.profile = <any>res['data']['result'];
|
||||
}
|
||||
|
||||
|
||||
resolve();
|
||||
|
|
Loading…
Reference in New Issue