Merged in feat/sw-1602-preliminary-receipt (pull request #1595)
feat/sw-1602 preliminary receipt * feat(sw-1602): create page for preliminary receipt * Add link to my stay page Approved-by: Pontus Dreij
This commit is contained in:
@@ -25,3 +25,7 @@ export function getNights(start: string, end: string) {
|
||||
}
|
||||
return range
|
||||
}
|
||||
|
||||
export function getNumberOfNights(startDate: Date, endDate: Date) {
|
||||
return d(endDate).diff(startDate, "day")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user