Form/Settings: fix tbxIRR_Perc min/max validation

This commit is contained in:
vchikalkin 2023-05-24 12:58:23 +03:00
parent 0246916fca
commit f8adc2e8c7

View File

@ -210,7 +210,7 @@ const overrideRender: Partial<Record<keyof typeof map, RenderProps>> = {
title={title}
addon={`${formatter(min)}% - ${formatter(max)}%`}
/>
<Element {...props} min={min} max={max} />
<Element {...props} min={min > 0 ? min : undefined} max={max > 0 ? max : undefined} />
</Container>
);
});