Remove usages of Buffer
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
974d3c175a
commit
619e41e3a2
6 changed files with 12 additions and 7 deletions
|
@ -37,7 +37,6 @@ interface IState {
|
|||
userCode?: string;
|
||||
checkCode?: string;
|
||||
failureReason?: FailureReason;
|
||||
lastScannedCode?: Buffer;
|
||||
}
|
||||
|
||||
export enum LoginWithQRFailureReason {
|
||||
|
@ -154,7 +153,7 @@ export default class LoginWithQR extends React.Component<IProps, IState> {
|
|||
throw new Error("Rendezvous not found");
|
||||
}
|
||||
|
||||
if (!this.state.lastScannedCode && this.state.rendezvous?.checkCode !== checkCode) {
|
||||
if (this.state.rendezvous?.checkCode !== checkCode) {
|
||||
this.setState({ failureReason: LoginWithQRFailureReason.CheckCodeMismatch });
|
||||
return;
|
||||
}
|
||||
|
@ -201,7 +200,6 @@ export default class LoginWithQR extends React.Component<IProps, IState> {
|
|||
failureReason: undefined,
|
||||
userCode: undefined,
|
||||
checkCode: undefined,
|
||||
lastScannedCode: undefined,
|
||||
mediaPermissionError: false,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue