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

prevent error when a provider commission does not exist #1104

Closed
wants to merge 1 commit into from

Conversation

rdoh
Copy link
Contributor

@rdoh rdoh commented May 27, 2019

No description provided.

commissionLineItem.lineTotal instanceof Money &&
commissionLineItem.lineTotal.amount <= 0
);
return commissionLineItem.lineTotal instanceof Money && commissionLineItem.lineTotal.amount <= 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should check if the commissionLineItem exists before trying to access lineTotal or amount. It's not clear why this change has been made.

@OtterleyW
Copy link
Contributor

Added just the check for providerCommissionLineItem in PR #1112

@OtterleyW OtterleyW closed this Jun 10, 2019
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.

None yet

2 participants