Scouts-Victoria-Program / RadioActiv8

Django App for Radio Active Scout game management
GNU Affero General Public License v3.0
1 stars 1 forks source link

Check In issue with generating different destination #20

Open Jess-Hay opened 5 months ago

Jess-Hay commented 5 months ago

Occassionally when checking a patrol into a base at STS2024, it would also add a different, random destination.

mattcen commented 5 months ago

This has something to do with the code around here:

https://github.com/Scouts-Victoria-Program/RadioActiv8/blob/b3b19a481be39f49c3b627bd4ef3653eeecc7c99/django/RadioActiv8/static/RadioActiv8/js/event-form.js#L5

probably some sort of race condition where it’s selecting a random base after we set it to the current location. Needs some digging.