From 1fcb8ed017907deb451411d09c15295741192c70 Mon Sep 17 00:00:00 2001 From: nikocean Date: Wed, 3 Apr 2024 16:20:20 +0700 Subject: [PATCH] call ctaUrl and ctaText from API --- .../kompas-metered-register/kompas-metered-register.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/kompas-metered-register/kompas-metered-register.tsx b/src/components/kompas-metered-register/kompas-metered-register.tsx index bef97c0..1b43d8e 100644 --- a/src/components/kompas-metered-register/kompas-metered-register.tsx +++ b/src/components/kompas-metered-register/kompas-metered-register.tsx @@ -178,15 +178,15 @@ export class KompasMeteredRegister { return ( // kondisi cta_url
- {!this.cta_url ? ( + {!this.textTemplate.ctaUrl ? ( // kalau cta_url kosong ) : ( // kalau cta_url ada isi - - + + )}
@@ -255,7 +255,6 @@ export class KompasMeteredRegister { * fetch() mendapatkan respons 200 */ this.textTemplate = await req.json(); - const getCountdown = this.countdownArticle; if (!getCountdown) { this.isShowBanner = false;