digidem / comapeo-mobile

The next version of Mapeo mobile
GNU General Public License v3.0
5 stars 0 forks source link

observations I created are displayed as though they were created by someone else #410

Open achou11 opened 1 month ago

achou11 commented 1 month ago

Currently, we use a blue outline on the left of row item in the observations list screen to indicate that the observation is read-only i.e. not created by my device. However, this is happening for observations that definitely were created by my device:

image

Issue is with this line:

https://github.com/digidem/comapeo-mobile/blob/8cc1f42a70c1ecde9e05d1365dd4c87cf06bbf2a/src/frontend/screens/ObservationsList/ObservationListItem.tsx#L36

We should be using the deviceId field from the useDeviceInfo() hook instead