Skip to content

Commit e6e8f21

Browse files
committed
UserStatusScreen [nfc]: Make a conditional more transparent
We've currently got statusText: string | null so this new code gives the same results, but it's clearer.
1 parent 588cb03 commit e6e8f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/user-statuses/UserStatusScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function UserStatusScreen(props: Props): Node {
7070
maxLength={60}
7171
style={styles.statusTextInput}
7272
placeholder="What’s your status?"
73-
value={statusText || ''}
73+
value={statusText ?? ''}
7474
onChangeText={setStatusText}
7575
/>
7676
<FlatList

0 commit comments

Comments
 (0)