Merge pull request 'MAPG-203 this.response.newPlace -> this.response.place' (#7) from bugfix/MAPG-203-fix-wrong-object-key into develop
All checks were successful
default-pipeline default-pipeline #28

Reviewed-on: https://gitea.e5tv.hu/esoko/mapguesser/pulls/7
This commit is contained in:
Bence Pőcze 2021-03-17 22:54:45 +01:00 committed by Gitea
commit 0cc63ef936
No known key found for this signature in database
GPG Key ID: 2E27A8C281A1CC2C

View File

@ -200,9 +200,9 @@
document.getElementById('showSummaryButton').style.display = 'block';
}
if (this.response.newPlace) {
Game.panoId = this.response.newPlace.panoId;
Game.pov = this.response.newPlace.pov;
if (this.response.place) {
Game.panoId = this.response.place.panoId;
Game.pov = this.response.place.pov;
} else {
Game.panoId = null;
Game.pov = null;