From 58649db181fb38e0ea30f62fd25416efa7957ea9 Mon Sep 17 00:00:00 2001 From: mngshm Date: Mon, 5 May 2025 13:25:21 +0530 Subject: [PATCH] fix Linters in UpdateSubscription Component --- .../src/components/UpdateSubscription.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/infra/staff/src/components/UpdateSubscription.tsx b/infra/staff/src/components/UpdateSubscription.tsx index b1bf7dfea1..1b1806b59a 100644 --- a/infra/staff/src/components/UpdateSubscription.tsx +++ b/infra/staff/src/components/UpdateSubscription.tsx @@ -62,8 +62,8 @@ const UpdateSubscription: React.FC = ({ expiryTime: "", userId: "", attributes: { - "customerID": "", - "stripeAccountCountry": "" + customerID: "", + stripeAccountCountry: "", }, }); @@ -108,9 +108,13 @@ const UpdateSubscription: React.FC = ({ expiryTime: expiryTime, userId: userDataResponse.subscription.userID || "", attributes: { - customerID: userDataResponse.subscription.attributes.customerID || "", - stripeAccountCountry: userDataResponse.subscription.attributes.stripeAccountCountry || "" - } + customerID: + userDataResponse.subscription.attributes + .customerID || "", + stripeAccountCountry: + userDataResponse.subscription.attributes + .stripeAccountCountry || "", + }, }); } catch (error) { console.error("Error fetching data:", error); @@ -174,8 +178,9 @@ const UpdateSubscription: React.FC = ({ transactionId: values.transactionId, attributes: { customerID: values.attributes.customerID, - stripeAccountCountry: values.attributes.stripeAccountCountry - } + stripeAccountCountry: + values.attributes.stripeAccountCountry, + }, }; try {