Skip to content

Commit

Permalink
fix(messenger): restore outgoing request
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <norman@berty.tech>
  • Loading branch information
n0izn0iz committed Sep 4, 2020
1 parent e481ae9 commit 38062d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions js/packages/components/main/HomeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ const OutgoingRequestItem: React.FC<any> = ({ displayName: name, publicKey, stat
CommonActions.navigate({
name: Routes.Main.RequestSent,
params: {
contact: {
name,
publicKey,
},
contactPublicKey: publicKey,
},
}),
)
Expand Down
2 changes: 1 addition & 1 deletion js/packages/components/main/RequestSent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const RequestSent: React.FC<{ route: any }> = ({ route }) => {

return (
<Request
user={route.params.contact}
contactPublicKey={route.params.contactPublicKey}
markAsVerified={false}
blurAmount={10}
blurColor={'cyan'}
Expand Down
2 changes: 1 addition & 1 deletion js/packages/components/shared-components/Request.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const BodyRequest: React.FC<BodyRequestProps> = ({
</View>
<View style={[padding.horizontal.medium, padding.top.scale(75)]}>
<Text style={[padding.vertical.tiny, text.align.center, text.size.big]}>
{contact.displayName}
{contact?.displayName}
</Text>
<TabBar
tabs={[
Expand Down

0 comments on commit 38062d3

Please sign in to comment.