Skip to content

Commit

Permalink
[Mobile] Fix profile + cover pic not uploading upon social sign up [C…
Browse files Browse the repository at this point in the history
…-3466] (#6850)

Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
  • Loading branch information
nicoback2 and nicoback authored Dec 5, 2023
1 parent c6dfb19 commit bc4d099
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/web/src/common/store/pages/signon/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ function* validateEmail(action) {
function* signUp() {
const audiusBackendInstance = yield getContext('audiusBackendInstance')
const { waitForRemoteConfig } = yield getContext('remoteConfigInstance')
const isNativeMobile = yield getContext('isNativeMobile')
const getFeatureEnabled = yield getContext('getFeatureEnabled')

yield call(waitForWrite)
Expand All @@ -361,8 +362,12 @@ function* signUp() {
const createUserMetadata = {
name: signOn.name.value.trim(),
handle: signOn.handle.value,
profilePicture: (signOn.profileImage && signOn.profileImage.file) || null,
coverPhoto: (signOn.coverPhoto && signOn.coverPhoto.file) || null,
profilePicture: isNativeMobile
? signOn.profileImage
: (signOn.profileImage && signOn.profileImage.file) || null,
coverPhoto: isNativeMobile
? signOn.coverPhoto
: (signOn.coverPhoto && signOn.coverPhoto.file) || null,
isVerified: signOn.verified,
location
}
Expand Down

0 comments on commit bc4d099

Please sign in to comment.