@foodpilot/foods 0.5.34 → 0.5.35

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.
@@ -1,6 +1,7 @@
1
1
  import { BoxProps } from '@mui/material';
2
2
  import { Improvement } from '../ComparisonBlock/ComparisonBlock';
3
3
  type Comparison = {
4
+ value: number | null;
4
5
  toCompareTo: number | null;
5
6
  improvement: Improvement;
6
7
  };
package/dist/main.js CHANGED
@@ -29782,12 +29782,12 @@ const ms = (e) => {
29782
29782
  ...i,
29783
29783
  children: [
29784
29784
  /* @__PURE__ */ f.jsx(ms, { value: n, unit: o }),
29785
- r !== void 0 && r.toCompareTo !== null && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
29785
+ r !== void 0 && r.toCompareTo !== null && r.value !== null && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
29786
29786
  /* @__PURE__ */ f.jsx(J, { borderLeft: `1px solid ${t.custom.grey[500]}` }),
29787
29787
  /* @__PURE__ */ f.jsx(
29788
29788
  f7,
29789
29789
  {
29790
- currentValue: n,
29790
+ currentValue: r.value,
29791
29791
  comparedTo: {
29792
29792
  value: r.toCompareTo
29793
29793
  },