-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture cloud email & id on feedback #1400
base: main
Are you sure you want to change the base?
Capture cloud email & id on feedback #1400
Conversation
The preview deployment failed. 🔴 Last updated at: 2024-10-09 14:13:58 CET |
src/lib/components/Feedback.svelte
Outdated
@@ -13,6 +14,10 @@ | |||
async function handleSubmit() { | |||
submitting = true; | |||
error = undefined; | |||
|
|||
const cloudUserId = loggedIn && $user?.$id ? $user.$id : undefined; | |||
const cloudUserEmail = loggedIn && $user?.email ? $user.email : undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not auto-populate the email field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need userId in that case then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've kept the ID for now, lmk if thats fine else we can remove.
What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)