Skip to content

Commit

Permalink
Preserve feature value display types (Flagsmith#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Feb 28, 2023
1 parent e873dd1 commit 7b5d73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/web/components/FeatureValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const FeatureValue = class extends Component {
if (this.props.value === null || this.props.value === undefined) {
return null;
}
const type = typeof Utils.getTypedValue(`${this.props.value}`);
const type = typeof this.props.value;
if (type === 'string' && this.props.value === '' && !this.props.includeEmpty) {
return null;
}
Expand Down

0 comments on commit 7b5d73f

Please sign in to comment.