From c89e96b824047db9513627f60f76dcdaf78d2cc7 Mon Sep 17 00:00:00 2001 From: Stixx Date: Mon, 4 Nov 2024 22:04:27 +0100 Subject: [PATCH] chore: added comment --- src/pages/verify/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/verify/index.tsx b/src/pages/verify/index.tsx index 05e9c8f..2d341c1 100644 --- a/src/pages/verify/index.tsx +++ b/src/pages/verify/index.tsx @@ -183,6 +183,11 @@ export const VerifyPage = () => { const { uploadedZip } = location.state || {} const [selectedFile, setSelectedFile] = useState(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