round promocode discount value

This commit is contained in:
nflnkr 2024-03-22 13:27:52 +03:00
parent 3ef684fdfe
commit e4ecd541ff

@ -25,7 +25,7 @@ export function usePromocodeGridColDef(deletePromocode: (id: string) => void) {
headerName: "Коэф. скидки",
width: 120,
sortable: false,
valueGetter: ({ row }) => row.bonus.discount.factor,
valueGetter: ({ row }) => Math.round(row.bonus.discount.factor * 1000) / 1000,
},
{
field: "activationCount",