Skip to content

Commit 0c5d2fa

Browse files
author
Adam
committed
Prettier
1 parent bfca495 commit 0c5d2fa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/react-notion-x/src/third-party/eval-formula.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,13 @@ function evalFunctionFormula(
370370
const date2 = evalFormula(args[1]!, ctx) as Date
371371
const unit = evalFormula(args[2]!, ctx) as string
372372
return (
373-
intervalToDuration({
374-
start: date2,
375-
end: date1
376-
}) as any
377-
)[unit] ?? 0 as number
373+
(
374+
intervalToDuration({
375+
start: date2,
376+
end: date1
377+
}) as any
378+
)[unit] ?? (0 as number)
379+
)
378380
}
379381

380382
case 'dateSubtract': {

0 commit comments

Comments
 (0)