Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarDavilaSampedro committed May 2, 2023
1 parent 833eac2 commit 0510b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/map/mapAddons/DetailedInfoWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DetailedUbicationView: React.FC<{
let marker = locations.find(marker => marker.id === markerShown.id);

if (marker) {
marker.reviews.push({ author: session.info.webId!, date: new Date(), score: reviewScore, comment: comment, pictureURL: pictureURL });
marker.reviews.push({ author: session.info.isLoggedIn ? session.info.webId! : "https://anonimo.inrupt.net/profile/card#me", date: new Date(), score: reviewScore, comment: comment, pictureURL: pictureURL });
setReviews(marker.reviews);

dispatch({ type: Types.UPDATE_MARKER, payload: { id: marker.id, marker: marker } });
Expand Down Expand Up @@ -163,7 +163,7 @@ const DetailedUbicationView: React.FC<{
</li>
))}
</ul>
{markerShown.webId !== session.info.webId && session.info.isLoggedIn &&
{markerShown.webId !== session.info.webId &&
<Button className='blueButton' variant="contained" sx={{ my: 2 }} onClick={() => setRatingOpen(true)}>{t("DetailedInfoWindow.writeReview")}</Button>
}
<Dialog onClose={() => setRatingOpen(false)} open={isRatingOpen}>
Expand Down

0 comments on commit 0510b60

Please sign in to comment.