Skip to content

Commit

Permalink
Coderabbit suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Sep 20, 2024
1 parent aa8a4a7 commit 873117a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export function CellValue<
);
}

const PRIVACY_FILTER_TYPES = ['financial', 'financial-with-sign'];

type CellValueTextProps<
SheetName extends SheetNames,
FieldName extends SheetFields<SheetName>,
Expand Down Expand Up @@ -88,11 +90,7 @@ export function CellValueText<
data-cellname={name}
{...props}
>
<PrivacyFilter
activationFilters={[
type === 'financial' || type === 'financial-with-sign',
]}
>
<PrivacyFilter activationFilters={[PRIVACY_FILTER_TYPES.includes(type)]}>
{formatter ? formatter(value, type) : format(value, type)}
</PrivacyFilter>
</Text>
Expand Down

0 comments on commit 873117a

Please sign in to comment.