treemapper icon indicating copy to clipboard operation
treemapper copied to clipboard

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

Open norbertschuler opened this issue 3 years ago • 0 comments

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 avatar Aug 13 '21 14:08 norbertschuler