File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Avatar } from '@dcl/schemas/dist/platform/profile'
4
4
import { EntityType } from '@dcl/schemas/dist/platform/entity'
5
5
import { PeerAPI } from '../../lib/peer'
6
6
import { EntitiesOperator } from '../../lib/entities'
7
+ import { getIdentityOrRedirect } from '../identity/sagas'
7
8
import {
8
9
ConnectWalletSuccessAction ,
9
10
CONNECT_WALLET_SUCCESS ,
@@ -31,13 +32,11 @@ import { Profile } from './types'
31
32
export const NO_IDENTITY_FOUND_ERROR_MESSAGE = 'No identity found'
32
33
33
34
type CreateProfileSagaOptions = {
34
- getIdentity : ( ) => AuthIdentity | undefined
35
35
peerUrl : string
36
36
peerWithNoGbCollectorUrl ?: string
37
37
}
38
38
39
39
export function createProfileSaga ( {
40
- getIdentity,
41
40
peerUrl,
42
41
peerWithNoGbCollectorUrl
43
42
} : CreateProfileSagaOptions ) {
@@ -139,7 +138,7 @@ export function createProfileSaga({
139
138
const profileMetadata : Profile = {
140
139
avatars : [ newAvatar , ...profileWithContentHashes . avatars . slice ( 1 ) ]
141
140
}
142
- const identity = getIdentity ( )
141
+ const identity : AuthIdentity | null = yield call ( getIdentityOrRedirect )
143
142
144
143
if ( identity ) {
145
144
yield call (
You can’t perform that action at this time.
0 commit comments