chore: removed unused variable from ComplianceDetails

fix: fixed the customer mutation, which was causing errors on all
customer compliance buttons
This commit is contained in:
Liordino Neto 2020-10-27 22:55:40 -03:00 committed by Josh Harvey
parent fbd075723a
commit 2a1aaaaf7e
2 changed files with 1 additions and 3 deletions

View file

@ -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 && (
<ComplianceDetails
customer={customerData}
locale={locale}
updateCustomer={updateCustomer}
/>
)}

View file

@ -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)