diff --git a/remix/app/Providers/ThingtimeProvider.tsx b/remix/app/Providers/ThingtimeProvider.tsx index 0d1306c..70a8b96 100644 --- a/remix/app/Providers/ThingtimeProvider.tsx +++ b/remix/app/Providers/ThingtimeProvider.tsx @@ -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