Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
wichopy committed Dec 31, 2024
1 parent 3c2480a commit bea2318
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ProviderEvents, type ProviderStatus, } from '@openfeature/web-sdk';
*/
export function useOpenFeatureClientStatus() {
const client = useOpenFeatureClient();
const [status, setStatus] = useState<typeof ProviderStatus>(client.providerStatus);
const [status, setStatus] = useState<ProviderStatus>(client.providerStatus);

useEffect(() => {
const updateStatus = () => setStatus(client.providerStatus);
Expand Down

0 comments on commit bea2318

Please sign in to comment.