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

Corrigir validação de metas pendentes ao exibir mensagem "Nenhuma meta completada" #1

Open
mateusramoscaetano opened this issue Sep 12, 2024 · 1 comment

Comments

@mateusramoscaetano
Copy link

Percebi que nao foi feita nenhuma validação caso data.GoalsPerDay seja null, e ele vem nulo caso nenhuma goal tenha sido completa ainda.
imagem_2024-09-12_102459100

no arquivo summary.tsx, seria necessário adicionar esta validação.

@brendondev
Copy link

image

Pra mim só funcionou quando mudei a lógica pra lidar com data.goalsPerDay, antes estava bugando o if do app.tsx e aí ocasionava em tela preta.

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

No branches or pull requests

2 participants