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

fix: refer to session.id from finalizeSession #731

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

BeritJanssen
Copy link
Collaborator

@BeritJanssen BeritJanssen commented Jan 23, 2024

It turns out that there was still a call to session.current in the API.finalizeSession function. Not caught by a test, unfortunately. What would be a good way to catch these kind of problems? The Final component calls this function, but mocks it. Obviously, TypeScript would warn if the function is called with the wrong types of arguments, so perhaps we can indeed introduce it gradually.

Copy link
Contributor

@drikusroor drikusroor left a comment

Choose a reason for hiding this comment

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

LGTM. With regards to your comment about typescript. I can put some energy again in the Vite migration PR, which would allow us to slowly migrate to typescript. What do you think?

frontend/src/API.js Show resolved Hide resolved
@BeritJanssen BeritJanssen merged commit 73281df into develop Jan 23, 2024
11 checks passed
@BeritJanssen BeritJanssen deleted the fix/finalize-session branch January 23, 2024 16:30
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