Skip to content

Commit

Permalink
fix(utils): useIsUserInteractionMode get mode via context
Browse files Browse the repository at this point in the history
Closes #1322
  • Loading branch information
mlaursen committed Dec 31, 2021
1 parent 4bb25fb commit b5f93ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/mode/UserInteractionModeListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function useUserInteractionMode(): UserInteractionMode {
* mode.
*/
export function useIsUserInteractionMode(mode: UserInteractionMode): boolean {
return useInteractionMode() === mode;
return useUserInteractionMode() === mode;
}

export interface UserInteractionModeListenerProps {
Expand Down

0 comments on commit b5f93ae

Please sign in to comment.