Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
osamasayed committed Oct 28, 2022
1 parent a95ba60 commit ff6dece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// this maps chapterNumber to verseCount
export const versesMaping = {
export const versesMapping = {
'1': 7,
'2': 286,
'3': 200,
Expand Down Expand Up @@ -211,7 +211,7 @@ const isValidVerseKey = (key: string) => {
if (!chapterId || !verseId || !isValidChapterId(chapterId)) return false;

const parsedVerse = Number(verseId);
const verseCount = (versesMaping as any)[chapterId];
const verseCount = (versesMapping as any)[chapterId];
if (!parsedVerse || parsedVerse <= 0 || parsedVerse > verseCount)
return false;

Expand Down

1 comment on commit ff6dece

@vercel
Copy link

@vercel vercel bot commented on ff6dece Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

api – ./docs

api-quranjs.vercel.app
quranjs.vercel.app
api-git-master-quranjs.vercel.app

Please sign in to comment.