fix profile error

master
drfelfel 2020-10-11 16:05:22 +03:30
parent f4b7c9b5af
commit 6e13fcf8bc
1 changed files with 4 additions and 1 deletions

View File

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