Skip to content
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

hide zupass button when not on devcon event #2142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ororsatti
Copy link
Collaborator

Screen.Recording.2024-11-09.at.22.30.18.mov

@@ -460,7 +469,7 @@ export const NewHomeScreen = (): ReactElement => {
</_SwipableViews>
<ButtonsContainer>
<SyncIndicator />
{Object.keys(appConfig.embeddedZapps).length > 0 && (
{getZapps(tickets[currentPos][0]).length > 0 && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{getZapps(tickets[currentPos][0]).length > 0 && (
{getZapps(tickets[currentPos]?.[0]).length > 0 && (

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on that state we have to have atleast one ticket, if not we render the no events state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants