1
0
Fork 0

simplify gist methods. set gist now sets the gist

This commit is contained in:
Enoch Riese 2022-06-24 12:59:08 -05:00
parent 94d59d44a2
commit 210c463a38
4 changed files with 9 additions and 19 deletions

View file

@ -9,6 +9,7 @@ const CoreSettingSaBool = props => {
const toggle = () => {
props.setGist({
...props.gist,
saBool: !value,
sa: value ? 0 : props.gist.saMm
})

View file

@ -15,6 +15,7 @@ const CoreSettingMm = props => {
setValue(newVal)
if (props.gist.sa) props.setGist({
...props.gist,
saMm: newVal,
sa: newVal,
})