Hot fix undefined links

This commit is contained in:
MartinBraquet
2026-03-07 00:24:22 +01:00
parent 2eb80b97d5
commit 66800d949b
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ android {
applicationId "com.compassconnections.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 57
versionCode 58
versionName "1.11.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {

View File

@@ -904,7 +904,7 @@ export const OptionalProfileUserForm = (props: {
{/*</label>*/}
<div className="grid w-full grid-cols-[8rem_1fr_auto] gap-2">
{Object.entries(profile.links as Socials)
{Object.entries((profile.links ?? {}) as Socials)
.filter(([_, value]) => value != null)
.map(([platform, value]) => (
<Fragment key={platform}>

View File

@@ -172,7 +172,7 @@ export default function ProfileAbout(props: {
<HasKids profile={profile} />
<WantsKids profile={profile} />
{!isCurrentUser && <LastOnline lastOnlineTime={userActivity?.last_online_time} />}
<UserHandles links={profile.links as Socials} />
<UserHandles links={(profile.links ?? {}) as Socials} />
</Col>
)
}