@difizen/libro-jupyter 0.2.19 → 0.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ export const LibroProgressWidgetComponent = forwardRef<HTMLDivElement>(
21
21
  function LibroProgressWidgetComponent() {
22
22
  const widgetView = useInject<ProgressWidget>(ViewInstance);
23
23
  const percent =
24
- widgetView.state.max && widgetView.state.min
24
+ widgetView.state.max !== undefined && widgetView.state.min !== undefined
25
25
  ? widgetView.state.value / ((widgetView.state.max - widgetView.state.min) / 100)
26
26
  : 0;
27
27
  if (widgetView.isCommClosed) {