Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjuric committed Jun 9, 2021
1 parent af77302 commit c574127
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ class AttachmentModal extends PureComponent {
: [styles.imageModalImageCenterContainer, styles.p5];

// If our attachment is a PDF, make the Modal unswipeable
const modalType = (this.state.sourceURL &&
(Str.isPDF(this.state.sourceURL) || (this.state.file && Str.isPDF(this.state.file.name || this.props.translate('attachmentView.unknownFilename')))))
const modalType = (this.state.sourceURL
&& (Str.isPDF(this.state.sourceURL) || (this.state.file
&& Str.isPDF(this.state.file.name || this.props.translate('attachmentView.unknownFilename')))))
? CONST.MODAL.MODAL_TYPE.CENTERED_UNSWIPEABLE
: CONST.MODAL.MODAL_TYPE.CENTERED
: CONST.MODAL.MODAL_TYPE.CENTERED;
return (
<>
<Modal
Expand Down

0 comments on commit c574127

Please sign in to comment.