diff --git a/src/clean-code/05-dry.ts b/src/clean-code/05-dry.ts index 5698b2f8..9cd6f662 100644 --- a/src/clean-code/05-dry.ts +++ b/src/clean-code/05-dry.ts @@ -28,7 +28,7 @@ class Product { toString() { - if ( !this.isProductReady ) return; + if ( !this.isProductReady() ) return; return `${ this.name } (${ this.price }), ${ this.size }`