Skip to content

Commit 7c7fde1

Browse files
authored
fix: filter and settings picker placeholder on web (#3014)
1 parent 061828c commit 7c7fde1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/picker/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const Picker = React.forwardRef((props: PickerProps, ref) => {
268268
if (fieldType === PickerFieldTypes.filter) {
269269
return (
270270
<Text text70 numberOfLines={1} style={others.style}>
271-
{label ?? others.placeholder}
271+
{_.isEmpty(label) ? others.placeholder : label}
272272
</Text>
273273
);
274274
} else if (fieldType === PickerFieldTypes.settings) {
@@ -278,7 +278,7 @@ const Picker = React.forwardRef((props: PickerProps, ref) => {
278278
{others.label}
279279
</Text>
280280
<Text text70 $textPrimary style={others.style}>
281-
{label ?? others.placeholder}
281+
{_.isEmpty(label) ? others.placeholder : label}
282282
</Text>
283283
</View>
284284
);

0 commit comments

Comments
 (0)