Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix Linters in UpdateSubscription Component

mngshm58649db181fb
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<UpdateSubscriptionProps> = ({
expiryTime: "",
userId: "",
attributes: {
- "customerID": "",
- "stripeAccountCountry": ""
+ customerID: "",
+ stripeAccountCountry: "",
},
});
@@ -108,9 +108,13 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({
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<UpdateSubscriptionProps> = ({
transactionId: values.transactionId,
attributes: {
customerID: values.attributes.customerID,
- stripeAccountCountry: values.attributes.stripeAccountCountry
- }
+ stripeAccountCountry:
+ values.attributes.stripeAccountCountry,
+ },
};
try {