Skip to content

Commit

Permalink
base
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-cp committed Apr 28, 2024
1 parent 4fcb55f commit 94b8b42
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/mobile/src/components/ProfilePicture/ProfilePicture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ export function ProfilePicture({ userRef, style, ...rest }: ProfilePictureProps)
/>
</ReportingErrorBoundary>
);
} else if (token) {
return (
<ReportingErrorBoundary fallback={fallbackProfilePicture}>
<ValidProfilePicture
style={style}
tokenRef={token}
eventElementId={null}
eventName={null}
eventContext={null}
{...rest}
/>
</ReportingErrorBoundary>
);
} else {
return fallbackProfilePicture;
}
Expand Down

0 comments on commit 94b8b42

Please sign in to comment.