Skip to content

Commit

Permalink
Update App.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shobrook committed Mar 21, 2020
1 parent 44ce0d3 commit 5cf5e92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export default class App extends Component {

render() {
const { cryptedFilePath, viewCode } = this.state;
const fileIsEncrypted = filePath.endsWith(".dbolt");

let filePath, fileName;
if (remote.process.argv.length >= 2) {
Expand All @@ -88,6 +87,8 @@ export default class App extends Component {
fileName = this.state.fileName;
}

const fileIsEncrypted = filePath.endsWith(".dbolt");

let appBody;
if (viewCode === 0) {
appBody = <FileUpload setFilePath={this.setFilePath} />;
Expand Down

0 comments on commit 5cf5e92

Please sign in to comment.