Unverified Commit bc94586c authored by Daniel's avatar Daniel Committed by GitHub

Remove unimplemented user API call (#113)

parent 92f9dca1
......@@ -7,8 +7,7 @@ import { getLoggedInUser, getUserById } from './api/v0';
export function* getLoggedInUserWorker(): SagaIterator {
try {
const user = yield call(getLoggedInUser);
const otherUserInfo = yield call(getUserById, user.user_id);
yield put({ type: GetLoggedInUser.SUCCESS, payload: { ...otherUserInfo, ...user }});
yield put({ type: GetLoggedInUser.SUCCESS, payload: user });
} catch (e) {
yield put({ type: GetLoggedInUser.FAILURE });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment