Skip to content

Commit

Permalink
fix(next): fix usePrefixCls tag undefined (#2042)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-otto authored Aug 24, 2021
1 parent 0f0285d commit 9af2dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/__builtins__/hooks/usePrefixCls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const usePrefixCls = (
) => {
const getContext = ConfigProvider['getContext']
const prefix = props?.prefix ?? getContext()?.prefix ?? 'next-'
return `${prefix}${tag}`
return `${prefix}${tag ?? ''}`
}

0 comments on commit 9af2dda

Please sign in to comment.