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

Load survey answers data from backend #15

Merged
merged 2 commits into from
Apr 28, 2022

Conversation

Ryczko
Copy link
Owner

@Ryczko Ryczko commented Apr 23, 2022

No description provided.

@Ryczko Ryczko requested a review from xdk78 April 23, 2022 12:21
}, [surveyId]);

const getSurveyData = async () => {
const surveyData = await getDoc(doc(db, 'surveys', surveyId!));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Owner Author

Choose a reason for hiding this comment

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

Nie płacze, tak to unikamy redundancji kodu kilka linijek wyżej, świadomie to jest użyte i nie ma opcji żeby to było null lub undefined. Ja bym zostawił

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

najwyżej po prostu wyłącz ten rule w configu eslinta jak chcesz

return;
}
const surveyData = await getDoc(doc(db, 'surveys', surveyId));
const surveyData = await getDoc(doc(db, 'surveys', surveyId!));
Copy link
Collaborator

Choose a reason for hiding this comment

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

git było, typescript znowu płacze 😢

@Ryczko Ryczko merged commit d94b8af into dev Apr 28, 2022
@Ryczko Ryczko deleted the feature/load-survey-data-from-backend branch April 28, 2022 10:09
Ryczko added a commit that referenced this pull request Feb 8, 2023
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