Skip to content

Commit

Permalink
[desk-tool] Fix time ago return value
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 9f9d7e2 commit 3110143
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function ChangesPanel({
since,
schemaType,
timelineMode
}: ChangesPanelProps) {
}: ChangesPanelProps): React.ReactElement | null {
const {close: closeHistory, historyController} = useDocumentHistory()
const diff: ObjectDiff | null = historyController.currentObjectDiff() as any

Expand Down Expand Up @@ -134,7 +134,7 @@ export function ChangesPanel({
)
}

function SinceText({since}: {since: Chunk}) {
function SinceText({since}: {since: Chunk}): React.ReactElement {
const timeAgo = useTimeAgo(since.endTimestamp)

return (
Expand Down

0 comments on commit 3110143

Please sign in to comment.