Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[C-1057] Fix blank edit-profile screen (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers committed Sep 13, 2022
1 parent 406e6c0 commit 32b8c82
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { useCallback } from 'react'

import type { UserMetadata } from '@audius/common'
import { SquareSizes, WidthSizes, profilePageActions } from '@audius/common'
import {
accountSelectors,
SquareSizes,
WidthSizes,
profilePageActions
} from '@audius/common'
import type { FormikProps } from 'formik'
import { Formik } from 'formik'
import { View } from 'react-native'
Expand All @@ -18,9 +23,9 @@ import { useUserCoverPhoto } from 'app/hooks/useUserCoverPhoto'
import { useUserProfilePicture } from 'app/hooks/useUserProfilePicture'
import { makeStyles } from 'app/styles'

import { getProfile } from '../profile-screen/selectors'

import type { ProfileValues, UpdatedProfile } from './types'

const { getAccountUser } = accountSelectors
const { updateProfile } = profilePageActions

const useStyles = makeStyles(({ palette }) => ({
Expand Down Expand Up @@ -105,7 +110,8 @@ const EditProfileForm = (props: FormikProps<ProfileValues>) => {
}

export const EditProfileScreen = () => {
const { profile } = useSelector(getProfile)
const profile = useSelector(getAccountUser)

const dispatch = useDispatch()

const coverPhoto = useUserCoverPhoto({
Expand Down

0 comments on commit 32b8c82

Please sign in to comment.