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

Open
m wants to merge 3 commits from issue-232 into staging
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