feat: feature/mvp-sprint-1

This commit is contained in:
Nikolaj Frey 2023-08-13 18:31:40 +10:00
parent c3804ef93f
commit fad185e0ec

View File

@ -126,6 +126,7 @@ export const ThingtimeProvider = (props: any): JSX.Element => {
const setThingtime = React.useCallback(
(path, value) => {
// TODO: make this a lot safer
if (["thingtime", "tt"]?.includes(path)) {
if (value) {
set(value)
@ -171,7 +172,6 @@ export const ThingtimeProvider = (props: any): JSX.Element => {
})
// TODO: make thingtime settable
newThingtime.thingtime = newThingtime
newThingtime.tt = newThingtime