From 546a04f3d3b5ae25d67267583c23135ea2a0845c Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Mon, 5 Feb 2024 16:34:54 -0800 Subject: [PATCH] Fixes signon saga type (#7466) --- .../common/src/services/audius-backend/AudiusBackend.ts | 8 +++----- packages/web/src/common/store/pages/signon/sagas.ts | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/common/src/services/audius-backend/AudiusBackend.ts b/packages/common/src/services/audius-backend/AudiusBackend.ts index 897f9f7ac6d..f10a24ef20c 100644 --- a/packages/common/src/services/audius-backend/AudiusBackend.ts +++ b/packages/common/src/services/audius-backend/AudiusBackend.ts @@ -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, diff --git a/packages/web/src/common/store/pages/signon/sagas.ts b/packages/web/src/common/store/pages/signon/sagas.ts index 4ffa8bca431..b5222a992d3 100644 --- a/packages/web/src/common/store/pages/signon/sagas.ts +++ b/packages/web/src/common/store/pages/signon/sagas.ts @@ -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 }