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

extension/src/lambda.js - handle nulls correctly #297

Merged
merged 1 commit into from
Jun 3, 2020
Merged

extension/src/lambda.js - handle nulls correctly #297

merged 1 commit into from
Jun 3, 2020

Conversation

jamiegardiner
Copy link
Contributor

Null check around paymentResult.data, which can be null if paymentHandler short circuits when not an adyen payment

@ahmetoz
Copy link
Contributor

ahmetoz commented Jun 2, 2020

@jamiegardiner Thanks for your first contribution 🎉
We will try to check and review in a couple of days 🙏

@ahmetoz ahmetoz changed the base branch from master to prepare_4.0.1 June 3, 2020 10:20
@ahmetoz ahmetoz merged commit 30947ab into Adyen:prepare_4.0.1 Jun 3, 2020
errors: paymentResult.data.errors,
actions: paymentResult.data.actions
errors: paymentResult.data ? paymentResult.data.errors : undefined,
actions: paymentResult.data ? paymentResult.data.actions : undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add a comment to the code from your PR description as it is not obvious to the reader:
Null check around paymentResult.data, which can be null if paymentHandler short circuits when not an adyen payment

@ahmetoz
Copy link
Contributor

ahmetoz commented Jun 3, 2020

My mistake 🤦 I thought @butenkor already approved it, so I merged it, I will add the comment to the code. I will do the release today.
#297 (comment)

@ahmetoz
Copy link
Contributor

ahmetoz commented Jun 3, 2020

@jamiegardiner https://github.com/commercetools/commercetools-adyen-integration/releases/tag/v4.0.1 the fix is released, thanks!

@jamiegardiner jamiegardiner deleted the fix-paymentHandler-exception-in-lambda branch June 3, 2020 12:03
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.

3 participants