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

Translation of "Unknown" species not shown after loading from API #461

Open
norbertschuler opened this issue Aug 13, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@norbertschuler
Copy link
Collaborator

Describe the bug
When you use a localized version of Treemapper and register an unknown species, in the review screen, in the list and in the detail screen after saving, the localized version of "Unknown" (e.g. "Unbekannt" in German) is shown.

Simulator Screen Shot - iPhone 11 - 2021-08-13 at 15 50 56Simulator Screen Shot - iPhone 11 - 2021-08-13 at 15 51 18

But if you delete the local data of the device (or load the plant locations on another empty device), the loaded data from the API (containing "scientificSpecies": null) is not showing any translation for "Unknown" any more:

Simulator Screen Shot - iPhone 11 - 2021-08-13 at 16 02 03Simulator Screen Shot - iPhone 11 - 2021-08-13 at 16 02 08

Is it on a Production or Development Build?
production & develop

To Reproduce
Steps to reproduce the behavior:

  1. Register single tree with unknown species.
  2. Upload the registration.
  3. Delete the data of the app.
  4. Load the registration again from the API.
  5. See error

Smartphone (please complete the following information):

  • Device: iPhone 11 simulator
  • OS: latest iOS
  • TreeMapper App Version: 1.0.5
@norbertschuler norbertschuler added the bug Something isn't working label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant