fix: qrcode undefined error (#1404)

This commit is contained in:
Nesopie
2025-11-12 18:31:33 +05:30
committed by GitHub
parent 524167e4d4
commit e045d4032b
2 changed files with 7 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ import { QRcodeSteps } from '../utils/utils.js';
import { initWebSocket } from '../utils/websocket.js';
import LED from './LED.js';
const LottieComponent = Lottie.default || Lottie;
interface SelfQRcodeProps {
selfApp: SelfApp;
onSuccess: () => void;
@@ -95,7 +97,8 @@ const SelfQRcode = ({
return <BounceLoader loading={true} size={200} color="#94FBAB" />;
case QRcodeSteps.PROOF_GENERATION_FAILED:
return (
<Lottie.default
//@ts-ignore
<LottieComponent
animationData={X_ANIMATION}
style={{ width: 200, height: 200 }}
onComplete={() => {
@@ -106,7 +109,8 @@ const SelfQRcode = ({
);
case QRcodeSteps.PROOF_VERIFIED:
return (
<Lottie.default
//@ts-ignore
<LottieComponent
animationData={CHECK_ANIMATION}
style={{ width: 200, height: 200 }}
onComplete={() => {

View File

@@ -1,6 +1,6 @@
{
"name": "@selfxyz/qrcode",
"version": "1.0.16",
"version": "1.0.17-beta.1",
"repository": {
"type": "git",
"url": "https://github.com/selfxyz/self"