fix(issue#16): Shows warning only when needed

This commit is contained in:
sovanna 2020-04-21 11:18:46 +09:00
parent 2adb262fb0
commit 41a19b9910
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ class ProductCartItem extends React.PureComponent {
<img className="alert-warning" src={warning ? `/images${warning.icon}` : null} />
)}
{warning && (
{warning && model.showWarning && (
<div className={`k-popup-warning ${shouldTooltipWarningClassInverted ? 'inverted': ''}`}>
<p className="rule warning">
<i>{warning.message}</i>