Skip to content

Commit

Permalink
Update useTethr
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Oct 9, 2023
1 parent b0fa8e0 commit e61a9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/src/useTethr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function useTethrConfig<N extends ConfigName>(

config.update = (value: ConfigType[N]) => cam.set(name, value)

cam.on(`${name}Changed` as any, (desc: ConfigDesc<ConfigType[N]>) => {
cam.on(`${name}Change` as any, (desc: ConfigDesc<ConfigType[N]>) => {
config.value = desc.value
config.writable = desc.writable
config.option = desc.option
Expand Down

0 comments on commit e61a9ae

Please sign in to comment.