Convert crypto/verification/* to Typescript

This commit is contained in:
Michael Telatynski 2021-09-08 12:34:44 +01:00
parent 92ad81ed76
commit f3abb13dc9
3 changed files with 15 additions and 29 deletions

View file

@ -57,7 +57,7 @@ const EncryptionPanel: React.FC<IProps> = (props: IProps) => {
// state to show a spinner immediately after clicking "start verification",
// before we have a request
const [isRequesting, setRequesting] = useState(false);
const [phase, setPhase] = useState(request && request.phase);
const [phase, setPhase] = useState(request?.phase);
useEffect(() => {
setRequest(verificationRequest);
if (verificationRequest) {