fix(location): fix trying to get user coords when no location
This commit is contained in:
parent
e9e53bf9e1
commit
a5085911a0
|
@ -33,7 +33,9 @@ export function *loadUser({address}) {
|
||||||
const id = yield MetadataStore.methods.addressToUser(address).call();
|
const id = yield MetadataStore.methods.addressToUser(address).call();
|
||||||
user = Object.assign(user, yield MetadataStore.methods.users(id).call());
|
user = Object.assign(user, yield MetadataStore.methods.users(id).call());
|
||||||
|
|
||||||
yield put({type: LOAD_USER_LOCATION, user, address});
|
if (user.location) {
|
||||||
|
yield put({type: LOAD_USER_LOCATION, user, address});
|
||||||
|
}
|
||||||
yield put({type: USER_RATING, address});
|
yield put({type: USER_RATING, address});
|
||||||
yield put({type: LOAD_USER_SUCCEEDED, user, address});
|
yield put({type: LOAD_USER_SUCCEEDED, user, address});
|
||||||
yield put({type: LOAD_ESCROWS, address});
|
yield put({type: LOAD_ESCROWS, address});
|
||||||
|
|
Loading…
Reference in New Issue