From e8874824c87e18c8942ff0cb8a7ed8433f4149ba Mon Sep 17 00:00:00 2001 From: LeonardoCruzTriana Date: Fri, 17 Feb 2023 12:00:03 -0500 Subject: [PATCH] Update 05-dry.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Faltaban los paréntesis para llamar la función 👍 --- src/clean-code/05-dry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }`