Skip to content

Commit

Permalink
chore: run prettier check on lint task (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut authored Oct 12, 2021
1 parent 064213b commit 9cc459b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"format": "prettier --write \"**/*.js\"",
"size": "size-limit",
"lint:css": "stylelint src/stylesheets/**/*.pcss",
"lint:js": "eslint .",
"lint:js": "eslint . && prettier --check \"**/*.js\"",
"test:ci": "cypress run",
"pretest": "npm run build",
"test": "npm run lint:css && npm run lint:js && npm run test:ci",
Expand Down
6 changes: 5 additions & 1 deletion src/widget/tabs/camera-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ class CameraTab {
this.container
.find('.uploadcare--camera__button_type_retry')
.on('click', this.__requestCamera)
if (!this.MediaRecorder || this.settings.imagesOnly || !this.settings.enableVideoRecording) {
if (
!this.MediaRecorder ||
this.settings.imagesOnly ||
!this.settings.enableVideoRecording
) {
startRecord.hide()
}
this.video = this.container.find('.uploadcare--camera__video')
Expand Down

0 comments on commit 9cc459b

Please sign in to comment.