Fix get profile

This commit is contained in:
Gustavo Maximiliano Cortez 2017-09-22 11:54:38 -04:00
parent 40cbe42eec
commit fbbd8baf8c
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ export class PersistenceProvider {
};
getProfile(): Promise<any> {
return this.storage.get(Keys.PROFILE);
return new Promise((resolve, reject) => {
this.storage.get(Keys.PROFILE).then((profile) => {
resolve(profile);
});
});
};
deleteProfile(): Promise<void> {