From 760a472be51f6c8550ace4f43a51e6691c4b6133 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 19 Feb 2020 17:05:32 -0700 Subject: [PATCH] Appease the linter --- src/components/views/elements/crypto/VerificationQRCode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();