diff --git a/js/components/ascribe_uploader/react_s3_fine_uploader.js b/js/components/ascribe_uploader/react_s3_fine_uploader.js index 67b19e02..538b02b7 100644 --- a/js/components/ascribe_uploader/react_s3_fine_uploader.js +++ b/js/components/ascribe_uploader/react_s3_fine_uploader.js @@ -344,6 +344,7 @@ const ReactS3FineUploader = React.createClass({ // still we warn the user of this component console.warn('createBlobRoutine was not defined for ReactS3FineUploader. Continuing without creating the blob on the server.'); resolve(); + return; } window.fetch(createBlobRoutine.url, { diff --git a/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js b/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js index 41f2c25a..ef2604f0 100644 --- a/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js +++ b/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js @@ -108,7 +108,7 @@ const PRRegisterPieceForm = React.createClass({ }) .then(() => this.history.pushState(null, `/pieces/${this.state.piece.id}`)) .catch(() => { - const notificationMessage = new GlobalNotificationModel(getLangText("Ups! We weren't able to send your submission. Contact: support@ascribe.io"), 'danger', 5000); + const notificationMessage = new GlobalNotificationModel(getLangText("Oops! We weren't able to send your submission. Contact: support@ascribe.io"), 'danger', 5000); GlobalNotificationActions.appendGlobalNotification(notificationMessage); }); }, @@ -311,7 +311,7 @@ const PRRegisterPieceForm = React.createClass({ createBlobRoutine={this.getCreateBlobRoutine()} keyRoutine={{ url: AppConstants.serverUrl + 's3/key/', - fileClass: 'other_data' + fileClass: 'otherdata' }} validation={{ itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit, @@ -333,7 +333,7 @@ const PRRegisterPieceForm = React.createClass({ createBlobRoutine={this.getCreateBlobRoutine()} keyRoutine={{ url: AppConstants.serverUrl + 's3/key/', - fileClass: 'other_data' + fileClass: 'otherdata' }} validation={{ itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit, @@ -372,4 +372,4 @@ const PRRegisterPieceForm = React.createClass({ } }); -export default PRRegisterPieceForm; \ No newline at end of file +export default PRRegisterPieceForm;