Add Sigit ID as a Path Param to /verify #243

Merged
m merged 5 commits from issue-232 into staging 2024-11-26 11:24:04 +00:00
Showing only changes of commit c89e96b824 - Show all commits

View File

@ -183,6 +183,11 @@ export const VerifyPage = () => {
const { uploadedZip } = location.state || {}
const [selectedFile, setSelectedFile] = useState<File | null>(null)
/**
* If `userAppData` is present it means user is logged in and we can extract list of `sigits` from the store.
* If ID is present in the URL we search in the `sigits` list
* Otherwise sigit is set from the `location.state.meta`
*/
if (usersAppData) {
const sigitCreateId = params.id