Skip to content

Commit

Permalink
Merge pull request #723 from 3DStreet/handle-geo-click
Browse files Browse the repository at this point in the history
handle when user is not logged in
  • Loading branch information
rahulkgupta authored Jul 23, 2024
2 parents 22c5434 + af50d45 commit 6613e85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const GeoPanel = () => {
const { currentUser } = useAuthContext();
const onClick = () => {
posthog.capture('geo_panel_clicked');
if (currentUser.isPro) {
if (!currentUser) {
Events.emit('opensigninmodal');
} else if (currentUser.isPro) {
Events.emit('opengeomodal');
} else {
Events.emit('openpaymentmodal');
Expand Down

0 comments on commit 6613e85

Please sign in to comment.