Skip to content

dont show timezoneChangeDialog when impersonating#4939

Merged
zomars merged 1 commit intomainfrom
4936-cal-49-hide-timezone-dialog-when-impersonating
Oct 10, 2022
Merged

dont show timezoneChangeDialog when impersonating#4939
zomars merged 1 commit intomainfrom
4936-cal-49-hide-timezone-dialog-when-impersonating

Conversation

@PeerRich
Copy link
Copy Markdown
Member

return null if impersonating

@PeerRich PeerRich linked an issue Oct 10, 2022 that may be closed by this pull request
@PeerRich
Copy link
Copy Markdown
Member Author

haven't tested but should work


const { data } = useSession();

if (data?.user.impersonatedByUID) return null;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ❌ Failed (Inspect) Oct 10, 2022 at 6:25PM (UTC)

@PeerRich PeerRich added the ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work label Oct 10, 2022
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it

@zomars zomars merged commit 9453c1f into main Oct 10, 2022
@zomars zomars deleted the 4936-cal-49-hide-timezone-dialog-when-impersonating branch October 10, 2022 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[CAL-49] hide timezone dialog when impersonating

3 participants