fix(mobile): list desktop and web devices instead of failing the screen

normalizeRegisteredDevice accepted only android/ios, so one desktop row made
the whole Devices screen fail. Accept the server platform list and show the
platform on each card.
This commit is contained in:
Yun Chan 2026-09-27 14:04:49 +09:00
parent 0a4f5aee64
commit 53fcdf6305
3 changed files with 20 additions and 3 deletions

View file

@ -150,7 +150,10 @@ export default function DevicesScreen(): React.ReactElement {
: t('mobile.devices.active')}
</ThemeText>
</View>
<ThemeText variant="small" color="muted">{device.osVersion ?? '—'}</ThemeText>
<ThemeText variant="small" color="muted">
{t(`mobile.devices.platform.${device.platform}`)}
{device.osVersion ? ` · ${device.osVersion}` : ''}
</ThemeText>
<ThemeText variant="small" color="muted">
{t('mobile.devices.version', { version: device.appVersion })}
</ThemeText>