mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-03 11:40:44 +03:00
Fixed logout issue
This commit is contained in:
parent
95d3f7b29a
commit
229a4f90fe
@ -187,7 +187,10 @@ export const updateUserData = userData =>
|
||||
export const removeUserData = username =>
|
||||
new Promise((resolve, reject) => {
|
||||
try {
|
||||
const account = realm.objects(USER_SCHEMA).filtered('username = $0', username);
|
||||
const account = Object.assign(
|
||||
[],
|
||||
realm.objects(USER_SCHEMA).filtered('username = $0', username),
|
||||
);
|
||||
if (Array.from(account).length > 0) {
|
||||
realm.write(() => {
|
||||
realm.delete(account);
|
||||
|
Loading…
Reference in New Issue
Block a user