π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
hotfix: changes to populate attributes after userDataResponse is received
mngshm578547fc75e9
diff --git a/infra/staff/src/components/UpdateSubscription.tsx b/infra/staff/src/components/UpdateSubscription.tsxindex 9a640646be..7e51c5cea9 100644--- a/infra/staff/src/components/UpdateSubscription.tsx+++ b/infra/staff/src/components/UpdateSubscription.tsx@@ -22,6 +22,10 @@ interface Subscription {originalTransactionID: string;expiryTime: number;userID: string;+ attributes: {+ customerID: string;+ stripeAccountCountry: string;+ };}interface UserDataResponse {@@ -40,6 +44,10 @@ interface FormValues {transactionId: string;expiryTime: string | Date | null;userId: string;+ attributes: {+ customerID: string;+ stripeAccountCountry: string;+ };}const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({@@ -53,6 +61,10 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({transactionId: "",expiryTime: "",userId: "",+ attributes: {+ "customerID": "",+ "stripeAccountCountry": ""+ },});const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);@@ -95,7 +107,12 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({"",expiryTime: expiryTime,userId: userDataResponse.subscription.userID || "",+ attributes: {+ customerID: userDataResponse.subscription.attributes.customerID || "",+ stripeAccountCountry: userDataResponse.subscription.attributes.stripeAccountCountry || ""+ }});+ console.log(userDataResponse)} catch (error) {console.error("Error fetching data:", error);}@@ -156,6 +173,10 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({productId: values.productId,paymentProvider: values.provider,transactionId: values.transactionId,+ attributes: {+ customerID: values.attributes.customerID,+ stripeAccountCountry: values.attributes.stripeAccountCountry+ }};try {