fix: liturgical chant type and entry availability check
This commit is contained in:
@@ -31,7 +31,7 @@ import { LiturgiesSortOrder } from "./sortOrders.ts"
|
||||
* yet.
|
||||
*/
|
||||
export const getLiturgicalChantValue = (
|
||||
dynamic: ActivatableRated | undefined,
|
||||
dynamic: ActivatableRatedWithEnhancements | undefined,
|
||||
): number | undefined => dynamic?.value
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user