diff --git a/src/renderer/redux/actions/publish.js b/src/renderer/redux/actions/publish.js index 4a2a35deb..25d0cb663 100644 --- a/src/renderer/redux/actions/publish.js +++ b/src/renderer/redux/actions/publish.js @@ -67,7 +67,7 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch: return text; }; - const uploadError = (error: string = '') => + const uploadError = (error = '') => dispatch( batchActions( { @@ -104,9 +104,9 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch: thumbnail: `${json.data.url}${fileExt}`, }, }) - : uploadError(['Upload failed']) + : uploadError('Upload failed') ) - .catch(err => uploadError([err.message])); + .catch(err => uploadError(err.message)); }; export const doPrepareEdit = (claim: any) => (dispatch: Dispatch) => {