fix: ensure books display in biblical order (Old Testament → New Testament)
- Modified offline storage to sort books by orderNum after IndexedDB retrieval - Fixed book ordering issue where books appeared out of sequence - Books now consistently display: Genesis → Revelation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -158,14 +158,14 @@ export default function BibleReaderNew({ initialVersion, initialBook, initialCha
|
||||
if (key === 'version') return initialVersion || null
|
||||
if (key === 'book') return initialBook || null
|
||||
if (key === 'chapter') return initialChapter || null
|
||||
if (key === 'verse') return searchParams.get('verse') // Still get verse from URL query params
|
||||
if (key === 'verse' && typeof window !== 'undefined') return searchParams.get('verse') // Only on client
|
||||
return null
|
||||
},
|
||||
has: (key: string) => {
|
||||
if (key === 'version') return !!initialVersion
|
||||
if (key === 'book') return !!initialBook
|
||||
if (key === 'chapter') return !!initialChapter
|
||||
if (key === 'verse') return searchParams.has('verse')
|
||||
if (key === 'verse' && typeof window !== 'undefined') return searchParams.has('verse') // Only on client
|
||||
return false
|
||||
},
|
||||
toString: (): string => ''
|
||||
|
||||
Reference in New Issue
Block a user