Skip to content

Commit

Permalink
Merge pull request #1071 from prolland006/bug946
Browse files Browse the repository at this point in the history
#946 hide map pin when profileType is change to member
  • Loading branch information
chrismclarke authored Jul 19, 2021
2 parents cc9b2b3 + 22f3fdd commit cd09761
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stores/Maps/maps.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ export class MapsStore extends ModuleStore {
const isPinAccepted = p.moderation === 'accepted'
const wasCreatedByUser = activeUser && p._id === activeUser.userName
const isAdminAndAccepted = isAdmin && p.moderation !== 'rejected'
return p.type && (isPinAccepted || wasCreatedByUser || isAdminAndAccepted)
return (
p.type &&
p.type !== 'member' &&
(isPinAccepted || wasCreatedByUser || isAdminAndAccepted)
)
})
if (IS_MOCK) {
pins = MOCK_PINS
Expand Down

0 comments on commit cd09761

Please sign in to comment.