mirror of https://github.com/BTCPrivate/copay.git
Fix get profile
This commit is contained in:
parent
40cbe42eec
commit
fbbd8baf8c
|
@ -70,7 +70,11 @@ export class PersistenceProvider {
|
||||||
};
|
};
|
||||||
|
|
||||||
getProfile(): Promise<any> {
|
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> {
|
deleteProfile(): Promise<void> {
|
||||||
|
|
Loading…
Reference in New Issue