diff --git a/src/screens/ChatScreen/index.js b/src/screens/ChatScreen/index.js index 5ee4aeb3..d0be9e89 100644 --- a/src/screens/ChatScreen/index.js +++ b/src/screens/ChatScreen/index.js @@ -120,14 +120,16 @@ const ChatScreen = ({ text: 'Yes', onPress: () => { const { privateKey } = fromWif(addressWif, testnet); - const signedMessage = signMessage(params.messageToSign, { testnet, privateKey }); + const signedMessage = signMessage(data.messageToSign, { testnet, privateKey }); const message = Buffer.from(JSON.stringify(signedMessage)).toString('base64'); onSend([{ text: `[Signed message](signed-message:${message})` }]); }, }, ]); }} - >{`\"${messageToSign}\"`} + > + {`\"${messageToSign}\"`} + ) : {`Request to sign message: \"${messageToSign}\"`}