mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: update QR code link to correctly reference user certification UUID in CourseEndView component
This commit is contained in:
parent
a913c0a366
commit
f609c50760
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ const CourseEndView: React.FC<CourseEndViewProps> = ({
|
||||||
const [userCertificate, setUserCertificate] = useState<any>(null);
|
const [userCertificate, setUserCertificate] = useState<any>(null);
|
||||||
const [isLoadingCertificate, setIsLoadingCertificate] = useState(false);
|
const [isLoadingCertificate, setIsLoadingCertificate] = useState(false);
|
||||||
const [certificateError, setCertificateError] = useState<string | null>(null);
|
const [certificateError, setCertificateError] = useState<string | null>(null);
|
||||||
const qrCodeLink = getUriWithOrg(orgslug, `/certificate/${userCertificate.user_certification_uuid}/verify`);
|
const qrCodeLink = getUriWithOrg(orgslug, `/certificates/${userCertificate?.certificate_user.user_certification_uuid}/verify`);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue