1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

(bug) Fix filter name

This commit is contained in:
vincent 2022-09-16 16:06:58 +02:00 committed by Sylvain
parent d0e68fbf21
commit b5c924a8e0

View File

@ -345,10 +345,10 @@ const Orders: React.FC<OrdersProps> = ({ currentUser, onError }) => {
<p>{filters.reference}</p>
<button onClick={removeFilter('reference')}><X size={16} weight="light" /></button>
</div>}
{filters.states?.map((f, index) => (
{filters.states?.map((status, index) => (
<div key={index} className='features-item'>
<p>{f}</p>
<button onClick={removeFilter('states', f)}><X size={16} weight="light" /></button>
<p>{t(`app.admin.store.orders.state.${status}`)}</p>
<button onClick={removeFilter('states', status)}><X size={16} weight="light" /></button>
</div>
))}
{filters.user_id > 0 && <div className='features-item'>