fix: crash when logging out

This commit is contained in:
thecodrr
2020-05-04 12:21:15 +05:00
parent 6ba937314d
commit c902076b4e

View File

@@ -16,6 +16,7 @@ export default class User {
async key() {
const user = await this.get();
if (!user) return;
return { key: user.key, salt: user.salt };
}