diff --git a/src/components/views/settings/devices/DeviceTile.tsx b/src/components/views/settings/devices/DeviceTile.tsx index 73ee17b2f4a..a23e1586db4 100644 --- a/src/components/views/settings/devices/DeviceTile.tsx +++ b/src/components/views/settings/devices/DeviceTile.tsx @@ -99,10 +99,12 @@ const DeviceTile: React.FC = ({ device, children, onClick }) =>
{ metadata.map(({ id, value }, index) => - - { !!index && ' · ' } - - , + !!value + ? + { !!index && ' · ' } + + + : null, ) }
diff --git a/test/components/views/settings/__snapshots__/DevicesPanel-test.tsx.snap b/test/components/views/settings/__snapshots__/DevicesPanel-test.tsx.snap index f0c569a82f1..2f2f3a7773e 100644 --- a/test/components/views/settings/__snapshots__/DevicesPanel-test.tsx.snap +++ b/test/components/views/settings/__snapshots__/DevicesPanel-test.tsx.snap @@ -141,8 +141,6 @@ exports[` renders device panel with devices 1`] = ` > Unverified - · - ·
renders device panel with devices 1`] = ` > Unverified - · - ·
renders device panel with devices 1`] = ` > Unverified - · - ·
renders device and correct security card when > Unverified - · - ·
renders device and correct security card when > Unverified - · - ·
renders a device with no metadata 1`] = ` > Unverified - · - ·
renders a verified device with no metadata 1`] = ` > Unverified - · - ·
renders display name with a tooltip 1`] = ` > Unverified - · - ·
renders unselected device tile with checkbox 1 Unverified · - · diff --git a/test/components/views/settings/tabs/user/__snapshots__/SessionManagerTab-test.tsx.snap b/test/components/views/settings/tabs/user/__snapshots__/SessionManagerTab-test.tsx.snap index ad796130e62..87f9aab9523 100644 --- a/test/components/views/settings/tabs/user/__snapshots__/SessionManagerTab-test.tsx.snap +++ b/test/components/views/settings/tabs/user/__snapshots__/SessionManagerTab-test.tsx.snap @@ -83,8 +83,6 @@ exports[` renders current session section with a verified s > Verified - · - ·
renders current session section with an unverifie > Unverified - · - ·
sets device verification status correctly 1`] = ` > Verified - · - ·