nmelhado / league-page

Create a custom league page for your Sleeper fantasy football league!
legends-league.vercel.app
MIT License
222 stars 1.08k forks source link

[BUG] #119

Closed samadya closed 2 years ago

samadya commented 2 years ago

Describe the bug No Power Rankings are shown on the main home screen. As well as there are no records for my league and there is a word undefined in my title of my standings page.. sorry im not experienced with coding at all.

784479282343895040 In many cases, the bug maybe related to something not yet accommodated for in League Page, or something specific to your league. Adding your league ID allows for a faster debug and bug fix.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'Home'
  3. Scroll down to '....'
  4. See error

Expected behavior Would like to see our Power Rankings.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'League Info, Records'
  3. Scroll down to '....'
  4. See error

Expected behavior Would like to see our our league records current and all time.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://sffl.vercel.app/'
  2. Click on 'League Info, Standings'
  3. Scroll down to '....'
  4. See error

Expected behavior The word undefined shouldn't be there.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Website gets stuck once season records or playoffs is clicked in 'Records' tab.

Screen Shot 2022-05-29 at 3 40 44 PM Screen Shot 2022-05-29 at 12 55 28 AM Screen Shot 2022-05-29 at 4 02 18 PM
samadya commented 2 years ago

Also was wondering if we could add to the resources page?

nmelhado commented 2 years ago

Just pushed up an update that will fix your rankings and standings page bugs. Use the update instructions to apply the fix. Power Rankings won't show up until the NFL schedule is set and Sleeper starts giving out projections. As for the resources, you can add or remove them as you wish. If you have a recommendation that would be good for other leagues, I can add it universally.

samadya commented 2 years ago

Got it. Thanks, could you tell me how to add to the resources like where I should go for that?

nmelhado commented 2 years ago

You would add something similar to this:

        {
            name: "FTN Fantasy",
            url: "https://www.ftnfantasy.com/nfl",
            icon: "insights",
            premium: true,
            separator: true,
        },

to src/lib/Resources.svelte

samadya commented 2 years ago

Thanks