Skip to content

Commit

Permalink
Update project-save-hoc.jsx - bad error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
cami-espinozaq authored Nov 23, 2023
1 parent 8e9676c commit 33b006d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/project-save-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const ProjectSaveHOC = (WrappedComponent) => {
console.log("save assets res", res)

if (!res.ok && res.status !== 409) {
throw new Error(`uploading an asset failed: ${asset.filename}`)
throw new Error(`uploading an asset failed: ${asset.fileName}`)
}

const body = await res.json()
Expand Down

0 comments on commit 33b006d

Please sign in to comment.