fix: disallow navigation to and blocking of anonymous customers
This commit is contained in:
parent
830997bce2
commit
4116069bd5
4 changed files with 31 additions and 21 deletions
|
|
@ -22,6 +22,7 @@ import { getStatus } from './helper'
|
|||
const useStyles = makeStyles(mainStyles)
|
||||
|
||||
const NUM_LOG_RESULTS = 1000
|
||||
const ANONYMOUS_USER_NAME = 'anonymous'
|
||||
|
||||
const GET_TRANSACTIONS_CSV = gql`
|
||||
query transactions($limit: Int, $from: Date, $until: Date) {
|
||||
|
|
@ -109,9 +110,11 @@ const Transactions = () => {
|
|||
view: it => (
|
||||
<div className={classes.flexWrapper}>
|
||||
<div className={classes.overflowTd}>{getCustomerDisplayName(it)}</div>
|
||||
<div onClick={() => redirect(it.customerId)}>
|
||||
<CustomerLinkIcon className={classes.customerLinkIcon} />
|
||||
</div>
|
||||
{getCustomerDisplayName(it) !== ANONYMOUS_USER_NAME && (
|
||||
<div onClick={() => redirect(it.customerId)}>
|
||||
<CustomerLinkIcon className={classes.customerLinkIcon} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue