diff --git a/src/components/views/right_panel/EncryptionPanel.js b/src/components/views/right_panel/EncryptionPanel.js
index 7ee9225a38..e67af0805a 100644
--- a/src/components/views/right_panel/EncryptionPanel.js
+++ b/src/components/views/right_panel/EncryptionPanel.js
@@ -93,7 +93,11 @@ const EncryptionPanel = (props) => {
let cancelButton;
if (request && request.pending) {
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
- cancelButton = ;
+ cancelButton = ();
}
const onStartVerification = useCallback(async () => {
@@ -110,7 +114,7 @@ const EncryptionPanel = (props) => {
(request && (phase === PHASE_REQUESTED || phase === PHASE_UNSENT || phase === undefined));
if (!request || requested) {
const initiatedByMe = (!request && isRequesting) || (request && request.initiatedByMe);
- return
+ return (
{cancelButton}
{
member={member}
waitingForOtherParty={requested && initiatedByMe}
waitingForNetwork={requested && !initiatedByMe} />
- ;
+ );
} else {
- return
+ return (
{cancelButton}
{
request={request}
key={request.channel.transactionId}
phase={phase} />
- ;
+ );
}
};
EncryptionPanel.propTypes = {