Restore type assert that got accidentally removed (#9934)

This commit is contained in:
Samuel Newman
2026-02-24 07:11:39 +00:00
committed by GitHub
parent 73b096e443
commit 782edbf281
@@ -129,7 +129,7 @@ function getAppIconName(icon: string | false): DynamicAppIcon.IconName {
if (!icon || icon === 'DEFAULT') { if (!icon || icon === 'DEFAULT') {
return 'default_light' return 'default_light'
} else { } else {
return icon return icon as DynamicAppIcon.IconName
} }
} }
@@ -151,7 +151,7 @@ function Group({
values={[value]} values={[value]}
maxSelections={1} maxSelections={1}
onChange={vals => { onChange={vals => {
if (vals[0]) onChange(vals[0]) if (vals[0]) onChange(vals[0] as DynamicAppIcon.IconName)
}}> }}>
<View style={[a.flex_1, a.rounded_md, a.overflow_hidden]}> <View style={[a.flex_1, a.rounded_md, a.overflow_hidden]}>
{children} {children}