Skip to content

Commit

Permalink
fix: TBCCT-192 Fix cost columns title and value
Browse files Browse the repository at this point in the history
  • Loading branch information
onehanddev authored and andresgnlez committed Dec 12, 2024
1 parent d4e80e1 commit 0b70c02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/src/containers/nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function MainNav() {
</SidebarContent>
<SidebarFooter>
<SidebarMenu>
{navItems.footer.map((item) => (
{/* {navItems.footer.map((item) => (
<SidebarMenuItem key={item.title}>
<SidebarMenuButton
asChild
Expand All @@ -123,7 +123,7 @@ export default function MainNav() {
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
))}
))} */}
<SidebarMenuItem>
<SidebarMenuButton
asChild
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PROJECT_SCORE } from "@shared/entities/project-score.enum";
import { createColumnHelper } from "@tanstack/react-table";
import { z } from "zod";

import { formatNumber } from "@/lib/format";
import { formatCurrency, formatNumber } from "@/lib/format";

import { filtersSchema } from "@/app/(overview)/url-store";

Expand Down Expand Up @@ -35,14 +35,14 @@ export const columns = (filters: z.infer<typeof filtersSchema>) => [
filters.costRangeSelector === "npv" ? "costPerTCO2eNPV" : "costPerTCO2e",
{
enableSorting: true,
header: () => <span>Cost $/tCo2</span>,
header: () => <span>Cost $(USD)/tCo2</span>,
cell: (props) => {
const value = props.getValue();
if (value === null || value === undefined) {
return "-";
}

return formatNumber(value);
return formatCurrency(value);
},
},
),
Expand Down

0 comments on commit 0b70c02

Please sign in to comment.