diff --git a/src/web/src/utils/usePlatformTools.ts b/src/web/src/utils/usePlatformTools.ts index 8817f092..85efa819 100644 --- a/src/web/src/utils/usePlatformTools.ts +++ b/src/web/src/utils/usePlatformTools.ts @@ -17,7 +17,7 @@ export function usePlatformTools() { }; }; - const emitEvent = (event: E, mutation: PreferenceMutation, state: PreferenceState) => { + const emitEvent = (event: E, mutation?: PreferenceMutation, state?: PreferenceState) => { new EventEmitter().emit(event, mutation, state); };