Add Sigit ID as a Path Param to /verify #243
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user