forked from MapComplete/MapComplete
		
	Fix: correct usage of userdetails
This commit is contained in:
		
							parent
							
								
									61eda2ab4a
								
							
						
					
					
						commit
						436b99a53a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -44,7 +44,7 @@
 | 
				
			||||||
    const imageInfo = await panoramax.imageInfo(image.id)
 | 
					    const imageInfo = await panoramax.imageInfo(image.id)
 | 
				
			||||||
    let reporter_email: string = undefined
 | 
					    let reporter_email: string = undefined
 | 
				
			||||||
    const userdetails = state.userRelatedState.osmConnection.userDetails
 | 
					    const userdetails = state.userRelatedState.osmConnection.userDetails
 | 
				
			||||||
    if (userdetails.data?.loggedIn) {
 | 
					    if (userdetails.data?.name) {
 | 
				
			||||||
      reporter_email = userdetails.data.name + "@openstreetmap.org"
 | 
					      reporter_email = userdetails.data.name + "@openstreetmap.org"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue