Skip to content

Commit

Permalink
X2-5999 Show "--" if line item is per outing demographic
Browse files Browse the repository at this point in the history
  • Loading branch information
blkr4 committed Aug 10, 2023
1 parent 3686b71 commit 9dec984
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/Breakdown.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React, { createContext, useContext } from "react";
import { isNumber } from "lodash";
import { Currency } from "./Utilities/Currency";

const colors = {
Expand Down Expand Up @@ -49,9 +50,13 @@ const BreakdownItem = ({ children, info, methodIcon, secondary, value, className
</td>

<td className="w-[1%] whitespace-nowrap pl-4 text-right">
<Currency shouldRemoveTrailingZeroes={false} currency={currency}>
{value}
</Currency>
{isNumber(value) ? (
<Currency shouldRemoveTrailingZeroes={false} currency={currency}>
{value}
</Currency>
) : (
<span>{value}</span>
)}
</td>
</tr>
);
Expand Down

0 comments on commit 9dec984

Please sign in to comment.