Skip to content

Commit 1592c89

Browse files
authored
fix: typo in hooks (#131)
1 parent 0999799 commit 1592c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-tweet/src/hooks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'
44
import swr from 'swr'
55
import { type Tweet, TwitterApiError } from './api/index.js'
66

7-
// Avois an error when used in the pages directory where useSWR might be in `default`.
7+
// Avoids an error when used in the pages directory where useSWR might be in `default`.
88
const useSWR = ((swr as any).default as typeof swr) || swr
99
const host = 'https://react-tweet.vercel.app'
1010

0 commit comments

Comments
 (0)