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

Variants \ actions block #60

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Variants \ actions block #60

merged 1 commit into from
Dec 20, 2023

Conversation

mpohorenyi
Copy link
Contributor

No description provided.

@@ -31,26 +29,51 @@ function getDetails(
if (color && capacity) {
return productDetail.additional.find(
(product) => product.color === color && product.capacity === capacity,
);
) || null;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

not clear to me why null? We enter in this block when we definatly sure that we have such params. Or we can possibly receive underfind?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The find method can return undefined, so to better typify this whole thing, I add null

}
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

styles look good)))

Copy link
Contributor

@OlhaKoziuk OlhaKoziuk left a comment

Choose a reason for hiding this comment

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

LGTM)

Copy link
Contributor

@dsfreedom dsfreedom left a comment

Choose a reason for hiding this comment

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

Everything looks good

@OlhaKoziuk OlhaKoziuk merged commit 2d0629e into master Dec 20, 2023
1 check passed
@mpohorenyi mpohorenyi deleted the Variants-acions-block branch December 27, 2023 08:02
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