Skip to content

Commit

Permalink
fix: fix isDayjs check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Jul 21, 2023
1 parent f185d07 commit 9f82758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Ls[L] = en
const IS_DAYJS = '$isDayjsObject'

// eslint-disable-next-line no-use-before-define
const isDayjs = d => d instanceof Dayjs || (d && d[IS_DAYJS])
const isDayjs = d => d instanceof Dayjs || !!(d && d[IS_DAYJS])

const parseLocale = (preset, object, isLocal) => {
let l
Expand Down

0 comments on commit 9f82758

Please sign in to comment.