Skip to content

Commit 0e9d76c

Browse files
authored
Merge pull request #35 from TaloDev/develop
Release 0.8.1
2 parents 28a909a + e109a54 commit 0e9d76c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@
6666
"lint-staged": {
6767
"*.{js,jsx}": "eslint --fix"
6868
},
69-
"version": "0.8.0"
69+
"version": "0.8.1"
7070
}

src/modals/StatDetails.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ const StatDetails = ({ modalState, mutate, editingStat }) => {
2525
const [error, setError] = useState(null)
2626
const activeGame = useRecoilValue(activeGameState)
2727

28-
const [global, setGlobal] = useState(editingStat?.unique ?? false)
28+
const [global, setGlobal] = useState(editingStat?.global ?? false)
2929

30-
const [range, setRange] = useState({ min: null, max: null })
30+
const [range, setRange] = useState({
31+
min: editingStat?.minValue ?? null,
32+
max: editingStat?.maxValue ?? null
33+
})
3134

3235
const validationSchema = useMemo(() => {
3336
return yup.object({

src/pages/Dashboard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const Dashboard = () => {
8484
</div>
8585
}
8686

87-
<h2 className='text-2xl'>Global stats</h2>
87+
{stats.length > 0 && <h2 className='text-2xl'>Global stats</h2>}
8888

8989
{statsError &&
9090
<ErrorMessage error={{ message: 'Couldn\'t fetch stats' }} />

0 commit comments

Comments
 (0)