Skip to content

Commit

Permalink
Merge pull request #1734 from GW2Treasures/feature/0-price-column
Browse files Browse the repository at this point in the history
Update price column rendering when price is 0
  • Loading branch information
darthmaim authored Nov 10, 2024
2 parents 5b5267d + 747b6b6 commit 8311b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/ItemTable/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export const globalColumnRenderer: Renderer = {
};

function renderPriceWithOptionalWarning(date: Date | string | null, price: number | null): ReactNode {
if(price === null) {
return '-';
if(!price) {
return empty();
}

const lastCheckedAt = date ? new Date(date) : undefined;
Expand Down

0 comments on commit 8311b47

Please sign in to comment.