mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-24 17:41:27 -04:00
Hot fix undefined links
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user