From 2a1aaaaf7ed5ab3a1c9d9dea3616aaa385af24a4 Mon Sep 17 00:00:00 2001 From: Liordino Neto Date: Tue, 27 Oct 2020 22:55:40 -0300 Subject: [PATCH] chore: removed unused variable from ComplianceDetails fix: fixed the customer mutation, which was causing errors on all customer compliance buttons --- new-lamassu-admin/src/pages/Customers/CustomerProfile.js | 2 -- .../src/pages/Customers/components/ComplianceDetails.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/new-lamassu-admin/src/pages/Customers/CustomerProfile.js b/new-lamassu-admin/src/pages/Customers/CustomerProfile.js index f0c4389c..03049099 100644 --- a/new-lamassu-admin/src/pages/Customers/CustomerProfile.js +++ b/new-lamassu-admin/src/pages/Customers/CustomerProfile.js @@ -73,7 +73,6 @@ const SET_CUSTOMER = gql` mutation setCustomer($customerId: ID!, $customerInput: CustomerInput) { setCustomer(customerId: $customerId, customerInput: $customerInput) { id - name authorizedOverride frontCameraPath frontCameraOverride @@ -194,7 +193,6 @@ const CustomerProfile = memo(() => { {showCompliance && ( )} diff --git a/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js b/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js index 755365a2..7fd1fbc6 100644 --- a/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js +++ b/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js @@ -47,7 +47,7 @@ const Photo = ({ show, src }) => { ) } -const ComplianceDetails = ({ customer, locale, updateCustomer }) => { +const ComplianceDetails = ({ customer, updateCustomer }) => { const classes = useStyles({ width: imageWidth }) const sanctions = R.path(['sanctions'])(customer)