Skip to content

Commit

Permalink
refactor: do not display sheet name for each entry when printing sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rno64 committed Dec 11, 2023
1 parent 371197e commit bf0a4c1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/print/sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ const printSheet = (
isActive?: boolean,
printDateAgo?: boolean
): void => {
const { activeEntryID, entries, name: sheetName } = sheet
const { activeEntryID, entries } = sheet

P.printSheetHeader(sheet, isActive)

entries.map((entry: TimeSheetEntry): void => {
P.printSheetEntry(
entry,
entry.id === activeEntryID,
sheetName,
printDateAgo
)
P.printSheetEntry(entry, entry.id === activeEntryID, '', printDateAgo)
})
}

Expand Down

0 comments on commit bf0a4c1

Please sign in to comment.