diff --git a/src/components/views/elements/crypto/VerificationQRCode.js b/src/components/views/elements/crypto/VerificationQRCode.js index 407c1adf81..cbbe2912d6 100644 --- a/src/components/views/elements/crypto/VerificationQRCode.js +++ b/src/components/views/elements/crypto/VerificationQRCode.js @@ -59,7 +59,7 @@ export default class VerificationQRCode extends React.PureComponent { } const requestEvent = verificationRequest.requestEvent; - let transactionId = requestEvent.getId() + const transactionId = requestEvent.getId() ? requestEvent.getId() : ToDeviceChannel.getTransactionId(requestEvent); @@ -112,7 +112,7 @@ export default class VerificationQRCode extends React.PureComponent { this.generateQrCode(); } - componentDidUpdate(prevProps: Readonly

): void { + componentDidUpdate(prevProps): void { if (JSON.stringify(this.props) === JSON.stringify(prevProps)) return; // No prop change this.generateQRCode();