fix: Clamp the end verse to actual chapter size

This commit is contained in:
Jeremy Wall 2024-03-04 08:20:21 -05:00
parent e2a91055cb
commit 08e8e9f86e

View File

@ -535,7 +535,7 @@ export class AppService extends createStateService(reducer, initialState) {
// get the verses requested.
const tvs = chapters[j].vss.length;
if (end === 0) {
if (end === 0 || end > tvs) {
end = tvs;
}