Skip to content

Commit

Permalink
refactor: simplify conditional statement
Browse files Browse the repository at this point in the history
  • Loading branch information
josepfo authored and siiky committed Jun 14, 2022
1 parent e01a747 commit bbde18d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions ui/js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/js/app.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions ui/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1204,11 +1204,7 @@ function setTermsScreen (data) {

function setAcceptButtonDisabled (screen, data) {
var acceptButton = screen.find('.js-terms-accept-button');
if (!data.acceptDisabled) {
acceptButton.prop('disabled', false);
} else {
acceptButton.prop('disabled', true);
}
acceptButton.prop('disabled', Boolean(data.acceptDisabled));
}

function clearTermsConditionsTimeout () {
Expand Down

0 comments on commit bbde18d

Please sign in to comment.