From 586c61e35b3db3947fe1fe8b3a4392de47535dd0 Mon Sep 17 00:00:00 2001 From: Bayu Prasetiyo Date: Fri, 30 Aug 2024 17:20:22 +0700 Subject: [PATCH] fix payload swg --- src/components/kompas-paywall-body/kompas-paywall-body.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/kompas-paywall-body/kompas-paywall-body.tsx b/src/components/kompas-paywall-body/kompas-paywall-body.tsx index f1d65c2..a8d27a6 100644 --- a/src/components/kompas-paywall-body/kompas-paywall-body.tsx +++ b/src/components/kompas-paywall-body/kompas-paywall-body.tsx @@ -284,7 +284,7 @@ export class KompasPaywallBody { const crypto = await cryptos(); await fetch(`${this.kompasApiSubs}/membership/swg`, { method: 'POST', - body: payload, + body: JSON.stringify(payload), headers:{ 'content-type': 'application/json', 'x-signature': crypto.xSignature,