Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit f7c1434

Browse files
authored
fix cache profile (#482)
1 parent aca9674 commit f7c1434

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/shared/profiles/sagas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ export function* handleFetchProfile(action: ProfileRequestAction): any {
155155
const profile: Avatar =
156156
// first fetch avatar through comms
157157
(shouldFetchViaComms && (yield call(requestProfileToPeers, commsContext, userId, version))) ||
158-
// and then via catalyst
159-
(shouldLoadFromCatalyst && (yield call(getRemoteProfile, userId, version))) ||
160158
// then for my profile, try localStorage
161159
(shouldReadProfileFromLocalStorage && (yield call(readProfileFromLocalStorage))) ||
160+
// and then via catalyst
161+
(shouldLoadFromCatalyst && (yield call(getRemoteProfile, userId, version))) ||
162162
// lastly, come up with a random profile
163163
(shouldFallbackToRandomProfile && (yield call(generateRandomUserProfile, userId)))
164164

0 commit comments

Comments
 (0)