Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
🎨 format code
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Mar 10, 2019
1 parent ac30514 commit 84a7bcf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/components/Forms/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ class Form extends Component {
componentDidMount() {
const {match: {params: {type}}, t} = this.props
const {handleFieldChange, messages, position} = this.context

// Form type does not exist was opened, don't continue
if (!Object.keys(forms).includes(type)) return


/** REVIEW: When this componentDidMount is called,
* messages is probably still empty,
* if the user opens the form in a new tab, instead of coming from the dashboard.
*/


if (!Object.keys(forms).includes(type)) return

const now = format(Date.now(), "yyyy-MM-dd'T'HH:mm", {awareOfUnicodeTokens: true})


Expand Down Expand Up @@ -79,8 +81,7 @@ class Form extends Component {
break
}

default:
break
default: break
}
handleFieldChange(newFields)
}
Expand Down
3 changes: 2 additions & 1 deletion src/db/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export class Database extends Component {
QI: 1, // Fishing permit
AC: "FIS", // Fishing activity
GP: 0, // Gear problem
ZO: "NOR" // Fishing zone
ZO: "NOR", // Fishing zone
DU: 0 // Duration of activity
}
}

Expand Down

0 comments on commit 84a7bcf

Please sign in to comment.