Skip to content

Commit

Permalink
couple of fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
lstebner committed Aug 28, 2023
1 parent fd88b39 commit f791e83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/Farmhand/Farmhand.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ export default class Farmhand extends FarmhandReducers {
let { experience } = state
if (experience === 0) {
experience = Object.values(state.itemsSold).reduce(
(acc, value) => acc + value
(acc, value) => acc + value,
0
)
}

Expand Down
5 changes: 3 additions & 2 deletions src/components/SettingsView/SettingsView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { bool, func } from 'prop-types'
import { bool, func, object } from 'prop-types'
import Button from '@material-ui/core/Button'
import Dialog from '@material-ui/core/Dialog'
import DialogActions from '@material-ui/core/DialogActions'
Expand All @@ -21,7 +21,7 @@ import './SettingsView.sass'

const SettingsView = ({
allowCustomPeerCowNames,
features = {},
features,
handleAllowCustomPeerCowNamesChange,
handleClearPersistedDataClick,
handleExportDataClick,
Expand Down Expand Up @@ -215,6 +215,7 @@ const SettingsView = ({

SettingsView.propTypes = {
allowCustomPeerCowNames: bool.isRequired,
features: object.isRequired,
handleAllowCustomPeerCowNamesChange: func.isRequired,
handleClearPersistedDataClick: func.isRequired,
handleExportDataClick: func.isRequired,
Expand Down

0 comments on commit f791e83

Please sign in to comment.