diff --git a/packages/common/src/api/tan-query/upload/usePublishTracks.ts b/packages/common/src/api/tan-query/upload/usePublishTracks.ts index 0e0129bffa1..58b53fca61f 100644 --- a/packages/common/src/api/tan-query/upload/usePublishTracks.ts +++ b/packages/common/src/api/tan-query/upload/usePublishTracks.ts @@ -93,6 +93,15 @@ export const publishTracks = async ( }) ) + dispatch( + updateProgress({ + clientId: param.clientId, + stemIndex: null, + key: 'image', + progress: { status: ProgressStatus.COMPLETE } + }) + ) + // Track success analytics for this individual track const analyticsKind = (kind ?? 'tracks') === 'tracks' diff --git a/packages/common/src/api/tan-query/upload/useUpload.ts b/packages/common/src/api/tan-query/upload/useUpload.ts index ffe8c66c6d3..89d8f14ec68 100644 --- a/packages/common/src/api/tan-query/upload/useUpload.ts +++ b/packages/common/src/api/tan-query/upload/useUpload.ts @@ -287,6 +287,16 @@ export const useUpload = () => { return } const sdk = await audiusSdk() + + // Finish the audio progress for the collection (there is none) + dispatch( + updateProgress({ + clientId: 'collection-artwork', + key: 'audio', + stemIndex: null, + progress: { status: ProgressStatus.COMPLETE } + }) + ) const uploadHandle = sdk.tracks.uploadTrackFiles({ imageFile: fileToSdk(formState.metadata.artwork.file, 'artwork'), onProgress: (key, { loaded, total }) => { @@ -465,10 +475,10 @@ export const useUpload = () => { collectionMetadata: formState.metadata, tracks: tracks.map((t) => { const imageUploadResponse = artwork?.find( - (a) => a.clientId === t.clientId + (a) => a.clientId === 'collection-artwork' )?.imageUploadResponse if (!imageUploadResponse) { - throw new Error(`No artwork found for track ${t.clientId}`) + throw new Error('No collection artwork upload found') } const audioUploadResponse = trackUploads.find( (ut) => ut.clientId === t.clientId