Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Update summary text in composeMessage method
Browse files Browse the repository at this point in the history
  • Loading branch information
yasharAyari committed Feb 1, 2019
1 parent d03f184 commit 76ad9c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/imessage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ class LiskMessageExtension extends Component {
const recipient = `&recipientAddress=${recipientAddress}`;
const txID = id ? `&txID=${id}` : '';
const url = `?address=${address.value}&amount=${amount}&state=${state}${txID}${recipient}`;
// this.setState({ url });
MessagesManager.updatePresentationStyle('compact');
this.setState({ state });
MessagesManager.composeMessage({
summaryText: `${state} ${amount} LSK`,
summaryText: state === 'requested' ? `${state} ${amount} LSK` : '',
url,
layout: {
imageName: state,
Expand Down

0 comments on commit 76ad9c2

Please sign in to comment.