Skip to content

Conversation

v-i-s-h-n-u-ps
Copy link
Contributor

No description provided.

@v-i-s-h-n-u-ps v-i-s-h-n-u-ps marked this pull request as ready for review April 19, 2024 05:58
@v-i-s-h-n-u-ps v-i-s-h-n-u-ps requested a review from esezen April 19, 2024 16:15
@@ -42,7 +43,9 @@ export default function ShareResultsModal({
? 'Share or save your quiz results through email or using the link below.'
: 'Share or save your quiz results with this link.'}
</div>
{onEmailResults && <EmailField onSubmit={(email) => onEmailResults({ email, url })} />}
{onEmailResults && (
<EmailField onSubmit={(email) => onEmailResults({ email, url, results })} />
Copy link
Contributor

Choose a reason for hiding this comment

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

The name results might be a bit confusing here since results is actually the response object that we get from the API which has request and response which has results under it 😅
We can either rename this to something else and keep exposing the same value or alternatively we can expose quizState.results.response.results. I am okay with both. What do you think @v-i-s-h-n-u-ps ?
Screenshot 2024-04-19 at 2 15 05 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems enough to expose quizState.results.response.results. Updated 9cffc91

Copy link
Contributor

@esezen esezen left a comment

Choose a reason for hiding this comment

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

LGTM!

@esezen esezen merged commit d2e9e01 into main Apr 24, 2024
@esezen esezen deleted the NO-REF/add-results-to-email-send-callback branch April 24, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants