Skip to content

Commit

Permalink
Handle feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoang Vu Huy committed Dec 23, 2024
1 parent 4458876 commit d052ec8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class ProductDetailInformationTabComponent implements OnChanges {
// To ensure the function always returns a boolean, you can explicitly coerce the result into a boolean using the !! operator or default it to false
// Adding !! in case of changedProduct is undefined, it will return false instead of returning undefined
isProductChanged(changedProduct: SimpleChange) {
return !!( changedProduct?.previousValue &&
return !!(changedProduct?.previousValue &&
Object.keys(changedProduct.previousValue).length > 0 &&
changedProduct.currentValue !== changedProduct.previousValue
);
Expand Down

0 comments on commit d052ec8

Please sign in to comment.