fix: update visibility logic for transaction actions based on approval status
This commit is contained in:
@ -205,7 +205,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
enableHiding: false,
|
||||
cell: (data) => {
|
||||
const row = data.row.original;
|
||||
const isVisible = row.status === 'F' ? true : false || row.status === 'P' ? true : false;
|
||||
const isVisible = (row.status === 'F' ? true : false || row.status === 'P' ? true : false) && row.status_approve !== 'W' ? true : false;
|
||||
return (
|
||||
<div key={`actions-${row.id}`}>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user