Merge pull request #51 from utopia-os/potential-fix-app-crash

fix(other): potentially fix an app crash
This commit is contained in:
antontranelis 2024-11-24 10:54:24 +01:00 committed by GitHub
commit a581fa3c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ export const TabsView = ({
const appState = useAppState()
const getUserProfile = (id: string) => {
return items.find(
(i) => i.user_created.id === id && i.layer?.itemType.name === appState.userType,
(i) => i.user_created?.id === id && i.layer?.itemType.name === appState.userType,
)
}