Skip to content

Commit 69bbe68

Browse files
committed
chore(demo): prevent masking em dash placeholder
1 parent ba69ffa commit 69bbe68

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/demo/src/components/sections/PushSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function PushSection({
3535
ellipsizeMode="middle"
3636
testID="push_id_value"
3737
>
38-
{pushSubscriptionId ? maskValue(pushSubscriptionId) : '–'}
38+
{maskValue(pushSubscriptionId ?? '—')}
3939
</Text>
4040
</View>
4141
<View style={styles.divider} />

examples/demo/src/components/sections/UserSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function UserSection({ externalUserId, onLogin, onLogout }: Props
5151
<View style={styles.row}>
5252
<Text style={styles.label}>External ID</Text>
5353
<Text style={styles.value} numberOfLines={1} testID="user_external_id_value">
54-
{externalUserId ?? ''}
54+
{externalUserId ?? ''}
5555
</Text>
5656
</View>
5757
</View>

examples/demo/src/utils/maskValue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { E2E_MODE } from '@env';
33
const MASK_CHAR = '•';
44

55
export function maskValue(value: string): string {
6-
if (E2E_MODE === 'true') {
6+
if (E2E_MODE === 'true' && value !== '—') {
77
return MASK_CHAR.repeat(value.length);
88
}
99
return value;

0 commit comments

Comments
 (0)