Skip to content

Commit

Permalink
fix(navigation): event cleanup (#955)
Browse files Browse the repository at this point in the history
Resolve typo in function name

Relates to:
#946 (review)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Corrected the spelling of the `componentWillUnmount` method in the
`HvNavigator` class to ensure proper functionality upon component
unmounting.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
hgray-instawork authored Oct 8, 2024
1 parent ae6a362 commit b5a6ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/hv-navigator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class HvNavigator extends PureComponent<Props> {
Events.subscribe(this.onEventDispatch);
}

componentWillUnmout = () => {
componentWillUnmount = () => {
Events.unsubscribe(this.onEventDispatch);
};

Expand Down

0 comments on commit b5a6ada

Please sign in to comment.