Skip to content
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

feat: add button session id to modals #1078

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

paypal-rosman
Copy link
Contributor

Description

add button session id to modals

Screenshots

Testing instructions

@@ -27,8 +27,7 @@ function generateLogPayload(account, { meta, events: bizEvents, tracking }) {
const components = Object.entries(meta)
.filter(([, component]) => component.account === account)
.map(([index, component]) => {
const { type, messageRequestId, stats = {}, trackingDetails } = component;

const { type, buttonSessionId = undefined, messageRequestId, stats = {}, trackingDetails } = component;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need = undefined? That should already be the case when destructuring from an object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed it, i thought attempting destructuring a variable that is undefined would cause a failure. I added a comment just in case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants