KhalisFoundation/sttm-web

Verse is not saved in favorite shabads

Gauravjeetsingh opened this issue · 2 comments

Describe the bug
When we mark a shabad as fav, it doesn't save any verse id in the database, which results in all the shabads, showing the first verse in fav shabad page.

When we mark the shabad as fav in the sttm-desktop app, it saves the verse id, but still doesn't show the verse in fav shabad page.

Sttm-web
image

Same account logged in sttm-desktop (it's not released in sttm-desktop yet, and currently in code review phase)
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to any shabad
  2. Click on star icon to mark as fav
  3. Go to the favorite shabads page
  4. You will see that it shows the first verse instead of highlighted verse

Expected behavior
It should save highlighted verse when marking as fav from sttm-web, and when retrieving favorite shabads, show the verse with saved verse id, instead of first verse.

@Gauravjeetsingh can you please recheck this now. I have already added feature to save pankti as favourite shabad title (#1488).