Skip to content

Commit

Permalink
Fixed bug due to change from verse -> verseNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
YewoMhango committed Mar 15, 2022
1 parent b2ccc98 commit ce7c9b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/ts/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ class Verse {
static fromJson(str: string) {
let value = JSON.parse(str);

return new Verse(value.book, value.chapter, value.verseNumber);
return new Verse(
value.book || "Genesis",
value.chapter || 1,
value.verseNumber || 1
);
}
}
/**
Expand Down

0 comments on commit ce7c9b3

Please sign in to comment.