Fix: correct usage of userdetails

This commit is contained in:
Pieter Vander Vennet 2025-01-21 21:10:09 +01:00
parent 61eda2ab4a
commit 436b99a53a

View file

@ -44,7 +44,7 @@
const imageInfo = await panoramax.imageInfo(image.id)
let reporter_email: string = undefined
const userdetails = state.userRelatedState.osmConnection.userDetails
if (userdetails.data?.loggedIn) {
if (userdetails.data?.name) {
reporter_email = userdetails.data.name + "@openstreetmap.org"
}