fix: allow decimal progression steps below one
This commit is contained in:
1 parent
5314b342ff
commit
dcfc7f15a7
2 files changed
+70
-1
No files matched your search
@@ -552,7 +552,7 @@ function ProgressionFields({ ex, mode, c, setC, routine, unit }) {
|
||||
if (options.length < 2) return null
|
||||
const inherited = policyFor({ id: ex.id }, routine, mode)
|
||||
const active = policyFor({ ...c, id: ex.id }, routine, mode)
|
||||
const inc = c.inc > 0 ? c.inc : (mode === 'time' ? 5 : defaultIncrement(ex.id, unit))
|
||||
const inc = c.inc >= 0 ? c.inc : (mode === 'time' ? 5 : defaultIncrement(ex.id, unit))
|
||||
return <>
|
||||
<h4 className="sec">{t('Progression')}</h4>
|
||||
<div className="sect-b" style={{ marginBottom: 8 }}>
|
||||
|
||||
Reference in new issue
Block a user