Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
expose all Flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Apr 21, 2020
1 parent 9bae7db commit 2b4200c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/usePopper.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export const usePopper = <Modifiers: DefaultModifiers = DefaultModifiers>(
) {
return prevOptions.current;
} else {
// $FlowFixMe: Cannot assign `newOptions` to `prevOptions.current` because string [1] is incompatible with string literal `updateState` [2] in property `name` of array element of property `modifiers`
prevOptions.current = newOptions;
return newOptions;
}
Expand All @@ -123,7 +122,7 @@ export const usePopper = <Modifiers: DefaultModifiers = DefaultModifiers>(
}

const createPopper = options.createPopper || defaultCreatePopper;
const popperInstance = createPopper(
const popperInstance = createPopper<InternalModifiers>(
referenceElement,
popperElement,
popperOptions
Expand Down

0 comments on commit 2b4200c

Please sign in to comment.