Skip to content

Commit

Permalink
fix(SKY30-508): Indicate when no data is available for Fully/Highly P…
Browse files Browse the repository at this point in the history
…rotected column
  • Loading branch information
clementprdhomme committed Dec 2, 2024
1 parent 5c00131 commit 0c4d469
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ export const useColumns = (
const { location } = row.original;

const value = location.mpaa_protection_level_stats.percentage;
if (value === null || value === undefined) {
return <span className="text-xs">{t('no-data-available')}</span>;
}

const formattedValue = cellFormatter.percentage(locale, value ?? 0);

return (
Expand Down

0 comments on commit 0c4d469

Please sign in to comment.