Fix working hours over the schedule events rendering (#4113)

# What this PR does

Fixes working hours rendering

## Which issue(s) this PR closes


## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
This commit is contained in:
Maxim Mordasov 2024-03-26 16:05:33 +00:00 committed by GitHub
parent 4854c835a2
commit 95063250ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ export const WorkingHours: FC<WorkingHoursProps> = (props) => {
key={index}
x={`${duration > 0 ? (start * 100) / duration : 0}%`} // x/0 is NaN
y={0}
width={`${duration > 0 ? (diff * 100) / duration : 0} %`} // x/0 is NaN
width={`${duration > 0 ? (diff * 100) / duration : 0}%`} // x/0 is NaN
height="100%"
fill={light ? 'url(#stripes_light)' : 'url(#stripes)'}
/>