Appease the linter

pull/21833/head
Travis Ralston 2020-02-19 17:05:32 -07:00
parent 3b6a201d4e
commit 760a472be5
1 changed files with 2 additions and 2 deletions

View File

@ -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<P>): void {
componentDidUpdate(prevProps): void {
if (JSON.stringify(this.props) === JSON.stringify(prevProps)) return; // No prop change
this.generateQRCode();