mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
InboxPage: check that user is available
This commit is contained in:
parent
fb12628115
commit
cfd50fe701
1 changed files with 2 additions and 2 deletions
|
|
@ -288,8 +288,8 @@ export const InboxPageComponent = props => {
|
|||
|
||||
const hasOrderOrSaleTransactions = (tx, isOrdersTab, user) => {
|
||||
return isOrdersTab
|
||||
? tx && tx.length > 0 && tx[0].customer.id.uuid === user.id.uuid
|
||||
: tx && tx.length > 0 && tx[0].provider.id.uuid === user.id.uuid;
|
||||
? user.id && tx && tx.length > 0 && tx[0].customer.id.uuid === user.id.uuid
|
||||
: user.id && tx && tx.length > 0 && tx[0].provider.id.uuid === user.id.uuid;
|
||||
};
|
||||
const hasTransactions =
|
||||
!fetchInProgress && hasOrderOrSaleTransactions(transactions, isOrders, currentUser);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue