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(LocationService): fixed currentpark not updating by taking park d… #244

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

kzepfl
Copy link
Contributor

@kzepfl kzepfl commented Dec 19, 2024

Fix

User current park didn't update, enabling people to spam point near a park by reloading the map
Fix: current user now is correctly updated, user won't get point when inside the same park

Changes

  • LocationService.kt, changed val currentParks to a var and updated currentPark by using the userViewModel directly

You can test the functionnality by seting your location inside a park and reloading the map

image

Copy link
Contributor

@Simmanz Simmanz left a comment

Choose a reason for hiding this comment

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

Good fix ! I tested it : Refreshing the map is indeed no longer providing the points for discovering the park multiple times. Good job !

image

@kzepfl kzepfl self-assigned this Dec 19, 2024
@kzepfl kzepfl linked an issue Dec 19, 2024 that may be closed by this pull request
@kzepfl kzepfl merged commit 24dc60b into main Dec 19, 2024
3 checks passed
@kzepfl kzepfl deleted the hotfix/fix-user-parks-not-updating branch December 19, 2024 23:40
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.

Hotfix/user discoverd park doesnt update
2 participants