chore: comments and lint (typing)
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 33s

This commit is contained in:
Stixx 2024-09-11 12:29:38 +02:00
parent 7c027825cd
commit 86a16c13ce

View File

@ -71,18 +71,22 @@ export const SignPage = () => {
* Received from `location.state`
*
* uploadedZip will be received from home page when a user uploads a sigit zip wrapper that contains keys.json
* arrayBuffer will be received in navigation from create page in offline mode
* meta will be received in navigation from create & home page in online mode
* arrayBuffer (decryptedArrayBuffer) will be received in navigation from create page in offline mode
* meta (metaInNavState) will be received in navigation from create & home page in online mode
*/
let metaInNavState = location.state.meta
let metaInNavState = location?.state?.meta || undefined
const { arrayBuffer: decryptedArrayBuffer, uploadedZip } = location.state || {
meta: undefined,
arrayBuffer: undefined,
decryptedArrayBuffer: undefined,
uploadedZip: undefined
}
/**
* If userAppData (redux) is available, and we have route param (sigit id)
* we will fetch a sigit based on the provided route ID and set it
* to the metaInNavState
*/
if (usersAppData) {
// Sigit id is a createEventId
const sigitId = params.id
if (sigitId) {