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:
parent
fbd075723a
commit
2a1aaaaf7e
2 changed files with 1 additions and 3 deletions
|
|
@ -73,7 +73,6 @@ const SET_CUSTOMER = gql`
|
||||||
mutation setCustomer($customerId: ID!, $customerInput: CustomerInput) {
|
mutation setCustomer($customerId: ID!, $customerInput: CustomerInput) {
|
||||||
setCustomer(customerId: $customerId, customerInput: $customerInput) {
|
setCustomer(customerId: $customerId, customerInput: $customerInput) {
|
||||||
id
|
id
|
||||||
name
|
|
||||||
authorizedOverride
|
authorizedOverride
|
||||||
frontCameraPath
|
frontCameraPath
|
||||||
frontCameraOverride
|
frontCameraOverride
|
||||||
|
|
@ -194,7 +193,6 @@ const CustomerProfile = memo(() => {
|
||||||
{showCompliance && (
|
{showCompliance && (
|
||||||
<ComplianceDetails
|
<ComplianceDetails
|
||||||
customer={customerData}
|
customer={customerData}
|
||||||
locale={locale}
|
|
||||||
updateCustomer={updateCustomer}
|
updateCustomer={updateCustomer}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ const Photo = ({ show, src }) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ComplianceDetails = ({ customer, locale, updateCustomer }) => {
|
const ComplianceDetails = ({ customer, updateCustomer }) => {
|
||||||
const classes = useStyles({ width: imageWidth })
|
const classes = useStyles({ width: imageWidth })
|
||||||
|
|
||||||
const sanctions = R.path(['sanctions'])(customer)
|
const sanctions = R.path(['sanctions'])(customer)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue