Skip to content

Commit 9c4bed7

Browse files
fix: apply suggestions from code review
Co-authored-by: François Chalifour <[email protected]>
1 parent bee8313 commit 9c4bed7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/autocomplete-core/src/onInput.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function onInput<TItem extends BaseItem>({
6565
nextState.isOpen ?? props.shouldPanelOpen({ state: store.getState() })
6666
);
6767

68-
// We to make sure to update the latest resolved value of the tracked
68+
// We make sure to update the latest resolved value of the tracked
6969
// promises to keep late resolving promises from "cancelling" the state
7070
// updates performed in this code path.
7171
// We chain with a void promise to respect `onInput`'s expected return type.
@@ -83,7 +83,7 @@ export function onInput<TItem extends BaseItem>({
8383
// We track the entire promise chain triggered by `onInput` before mutating
8484
// the Autocomplete state to make sure that any state manipulation is based on
8585
// fresh data regardless of when promises individually resolve.
86-
// We don't track nested promises and only rely on the full chain reoslution,
86+
// We don't track nested promises and only rely on the full chain resolution,
8787
// meaning we should only ever manipulate the state outside of this call.
8888
return runConcurrentSafePromise(
8989
props

0 commit comments

Comments
 (0)