Skip to content

Commit

Permalink
Inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 19, 2023
1 parent befc217 commit fe78f96
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
19 changes: 11 additions & 8 deletions apps/dashboard/src/components/charts/bar-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,17 @@ export function BarChart({ data }) {
fontSize={12}
tickLine={false}
axisLine={false}
tickFormatter={(value) =>
formatAmount({
maximumFractionDigits: 0,
minimumFractionDigits: 0,
currency: data.summary.currency,
amount: value,
})
}
tickFormatter={(value) => {
if (data.summary.currency) {
return formatAmount({
maximumFractionDigits: 0,
minimumFractionDigits: 0,
currency: data.summary.currency,
amount: value,
});
}
return 0;
}}
tick={{
fill: "#606060",
fontSize: 12,
Expand Down
8 changes: 8 additions & 0 deletions apps/dashboard/src/components/charts/transactions-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ export async function TransactionsList({ type, disabled }) {
},
});

if (!data?.length) {
return (
<div className="flex items-center justify-center h-full">
<p className="text-sm text-[#606060]">No transactions found</p>
</div>
);
}

return (
<ul className="bullet-none divide-y">
{data?.map((transaction) => {
Expand Down

0 comments on commit fe78f96

Please sign in to comment.