Skip to content

Commit

Permalink
Merge branch 'task/bt-716-connect-uploading-photo-and-company-logo' o…
Browse files Browse the repository at this point in the history
…f github.com:BinaryStudioAcademy/bsa-2023-bsa-talents into task/bt-716-connect-uploading-photo-and-company-logo
  • Loading branch information
dobroillya committed Sep 29, 2023
2 parents cc03979 + d0840c2 commit 7ce782e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mobile/src/bundles/common/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ const createUserDetails = createAsyncThunk<

if (files.length > EMPTY_FILE_COUNT) {
const response = await fileUploadApi.upload({ files });
mapFilesToPayload({
payload: payload,
const filesToPayload = mapFilesToPayload({
payload: { ...payload },
files: response,
});
payload.photoId = filesToPayload.photoId;
}

if (companyLogo) {
Expand Down

0 comments on commit 7ce782e

Please sign in to comment.