re-fix error message

This commit is contained in:
Travis Eden 2018-04-02 16:30:18 -04:00 committed by Sean Yesmunt
parent 6c14cd1e5b
commit 4d6d1f2e95

View file

@ -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) => {