Skip to content

Commit

Permalink
Fixes signon saga type (#7466)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Feb 6, 2024
1 parent 01ccbb2 commit 546a04f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions packages/common/src/services/audius-backend/AudiusBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1598,11 +1598,9 @@ export const audiusBackend = ({
}

/**
* @param {string} email
* @param {string} password
* @param {Object} formFields {name, handle, profilePicture, coverPhoto, isVerified, location}
* @param {boolean?} hasWallet the user already has a wallet but didn't complete sign up
* @param {ID?} referrer the user_id of the account that referred this one
* @param formFields {name, handle, profilePicture, coverPhoto, isVerified, location}
* @param hasWallet the user already has a wallet but didn't complete sign up
* @param referrer the user_id of the account that referred this one
*/
async function signUp({
email,
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/common/store/pages/signon/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ function* signUp() {
const createUserMetadata = {
name,
handle,
profilePicture: signOn.profileImage?.file || null,
coverPhoto: signOn.coverPhoto?.file || null,
profilePicture: (signOn.profileImage?.file as File) || null,
coverPhoto: (signOn.coverPhoto?.file as File) || null,
isVerified: signOn.verified,
location
}
Expand Down

0 comments on commit 546a04f

Please sign in to comment.