Skip to content

Commit

Permalink
fix(rnp chart): render as fragment if no returned name details
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Jan 9, 2025
1 parent fb6ff4c commit 8b9d2b0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/data-display/charts/RNPChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,7 @@ export function RNPChart({
</span>
);

if (!costDetails?.returnedNameDetails)
return (
<div className="flex text-white text-lg justify-center items-center m-auto">
This is not a returned name, unable to load chart.
</div>
);
if (!costDetails?.returnedNameDetails) return <></>;

return (
<div className="flex flex-col size-full">
Expand Down

0 comments on commit 8b9d2b0

Please sign in to comment.