-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch About page randomization bug #187
Conversation
@moteanup24 is attempting to deploy a commit to the OpenSats Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! ✨ Looks good to me ✅
}) | ||
|
||
let members | ||
switch (subset) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I like that.
Note that there's also the design
team, see DesignTeam.tsx
which is included as an MDX component in https://opensats.org/nostr#nostr-design - but I'd say that's a story for a follow-up PR.
export default function Members({ subset }) { | ||
const [sortedMembers, setSortedMembers] = useState([...allAuthors]) | ||
|
||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess useEffect
is what did the trick 👍
@dergigi this did the trick for me (I was able to retain the randomization functionality), please let me know if you still have issues with this bug!
note: this also includes some refactoring and cleaning up of outdated code