Skip to content

Commit

Permalink
Simplify submit
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Aug 5, 2020
1 parent 87fcaed commit f0f63f4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/app/ui/src/module/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ var Submit = {
finish: () => {
Submit.disabled = false;
},
text: (s) => {
if (!Submit.disabled) {
return s;
} else {
return Submit.submitText;
}
},
text: (s) => (!Submit.disabled ? s : Submit.submitText),
};

export default Submit;

0 comments on commit f0f63f4

Please sign in to comment.