fix: liturgical chant type and entry availability check

This commit is contained in:
Lukas Obermann
2023-10-31 19:58:44 +01:00
parent 2edaee9ed0
commit 14e642e839
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ import { LiturgiesSortOrder } from "./sortOrders.ts"
* yet.
*/
export const getLiturgicalChantValue = (
dynamic: ActivatableRated | undefined,
dynamic: ActivatableRatedWithEnhancements | undefined,
): number | undefined => dynamic?.value
/**
+2 -2
View File
@@ -58,7 +58,7 @@ export type DisplayedInactiveLiturgy =
| DisplayedInactiveCeremony
/**
* Filters the given list of inactive blessing by tradition restrictions.
* Filters the given list of inactive blessings by tradition restrictions.
*/
export const filterInactiveBlessings = (
visibleBlessings: DisplayedInactiveBlessing[],
@@ -193,7 +193,7 @@ export const getInactiveLiturgicalChantsOrCeremonies = <
return Object.values(staticLiturgicalChants)
.filter(
staticLiturgicalChant =>
isEntryAvailable(activeBlessedTradition.static.src) &&
isEntryAvailable(staticLiturgicalChant.src) &&
!isOptionalRatedWithEnhancementsActive(dynamicLiturgicalChants[staticLiturgicalChant.id]) &&
(belongsToBlessedTradition(
staticLiturgicalChant.traditions,