diff --git a/ui/component/publishForm/view.jsx b/ui/component/publishForm/view.jsx index b767a40be..7c8a3c8d1 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -29,6 +29,7 @@ type Props = { publish: (?string) => void, filePath: ?string, bid: ?number, + bidError: ?string, editingURI: ?string, title: ?string, thumbnail: ?string, @@ -74,6 +75,7 @@ function PublishForm(props: Props) { resolveUri, title, bid, + bidError, uploadThumbnailStatus, resetThumbnailStatus, updatePublishForm, @@ -90,7 +92,12 @@ function PublishForm(props: Props) { // If they are editing, they don't need a new file chosen const formValidLessFile = - name && isNameValid(name, false) && title && bid && !(uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS); + name && + isNameValid(name, false) && + title && + bid && + !bidError && + !(uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS); const formValid = editingURI && !filePath ? isStillEditing && formValidLessFile : formValidLessFile; let submitLabel; diff --git a/ui/component/publishFormErrors/index.js b/ui/component/publishFormErrors/index.js index 54ddef686..b551fd140 100644 --- a/ui/component/publishFormErrors/index.js +++ b/ui/component/publishFormErrors/index.js @@ -6,6 +6,7 @@ const select = state => ({ name: makeSelectPublishFormValue('name')(state), title: makeSelectPublishFormValue('title')(state), bid: makeSelectPublishFormValue('bid')(state), + bidError: makeSelectPublishFormValue('bidError')(state), editingUri: makeSelectPublishFormValue('editingUri')(state), uploadThumbnailStatus: makeSelectPublishFormValue('uploadThumbnailStatus')(state), isStillEditing: selectIsStillEditing(state), diff --git a/ui/component/publishFormErrors/view.jsx b/ui/component/publishFormErrors/view.jsx index fa7792591..4845f3971 100644 --- a/ui/component/publishFormErrors/view.jsx +++ b/ui/component/publishFormErrors/view.jsx @@ -7,6 +7,7 @@ type Props = { title: ?string, name: ?string, bid: ?string, + bidError: ?string, editingURI: ?string, filePath: ?string, isStillEditing: boolean, @@ -14,7 +15,7 @@ type Props = { }; function PublishFormErrors(props: Props) { - const { name, title, bid, editingURI, filePath, isStillEditing, uploadThumbnailStatus } = props; + const { name, title, bid, bidError, editingURI, filePath, isStillEditing, uploadThumbnailStatus } = props; // These are extra help // If there is an error it will be presented as an inline error as well @@ -24,6 +25,7 @@ function PublishFormErrors(props: Props) { {!name &&