Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscsykes committed Sep 1, 2020
1 parent e76f833 commit 2de26ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/codeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ Statistics/Data Analysis`;

// handles the situation where we are uploading by file
const handleFileUpload = () => {
// alias cannot have whitespace
if (alias.indexOf(' ') >= 0) {
handleAlert('error: Alias must not contain any white space characters', 'error');
} else if (fileToUpload && alias) {
Expand Down Expand Up @@ -267,6 +268,7 @@ Statistics/Data Analysis`;

// handles the situation where we are uploading by URL
const handleURLUpload = () => {
// alias cannot have whitespace
if (alias.indexOf(' ') >= 0) {
handleAlert('error: Alias must not contain any white space characters', 'error');
} else if (urlToUpload && alias) {
Expand Down

0 comments on commit 2de26ef

Please sign in to comment.