You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you are logged in and on the home page, you get an error in the console.
next-dev.js:20 MUI: The `value` provided to the Tabs component is invalid.
None of the Tabs' children match with "-1".
You can provide one of the following values: 0, 1, 2, 3, 4.
This comes from the SecondaryNav component. When we are on the home page, we are not in any of the tabs and the value is set as -1. -1 is not an index in the tabs.
To Reproduce
Go to / in bloom
Click on Login in the header
Log in with credentials/ create an account
Once logged in return to the home page
Look at the console and you will see the error
Expected behavior
We have no error in the console. Ideally we would not set a value at all. If you look at these [docs](https://mui.com/material-ui/api/tabs/) - it looks like you can set the value to false and it will select nothing and we won’t get the error.
Desktop (please complete the following information):
All OS and Browsers
The text was updated successfully, but these errors were encountered:
Thanks for your interest @IanWorley! You can have multiple issues as long as they are not both no-code hacktober issues in 1 repo. I've assigned you this issue. Please let us know if you have any questions!
Describe the bug
When you are logged in and on the home page, you get an error in the console.
This comes from the SecondaryNav component. When we are on the home page, we are not in any of the tabs and the value is set as -1. -1 is not an index in the tabs.
To Reproduce
Expected behavior
We have no error in the console. Ideally we would not set a value at all. If you look at these [docs](https://mui.com/material-ui/api/tabs/) - it looks like you can set the value to false and it will select nothing and we won’t get the error.
Desktop (please complete the following information):
All OS and Browsers
The text was updated successfully, but these errors were encountered: