Skip to content

Commit f1c738b

Browse files
committed
fix: add default value to second param
1 parent c49f0a5 commit f1c738b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/match-media/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const useBreakpointIndex = (options: defaultOptions = {}) => {
5454

5555
type Values = ((theme: Theme | null) => string[]) | string[]
5656

57-
export const useResponsiveValue = (values: Values, options: defaultOptions) => {
57+
export const useResponsiveValue = (values: Values, options: defaultOptions = {}) => {
5858
const { theme } = useThemeUI()
5959
const array = typeof values === 'function' ? values(theme) : values
6060
const index = useBreakpointIndex(options)

0 commit comments

Comments
 (0)