refactor: modify upload section
This commit is contained in:
@@ -29,7 +29,7 @@ export default function ResultsPage() {
|
||||
const videoData = sessionService.loadVideoData();
|
||||
|
||||
if (!sessionService.isSessionValid(storedSession) || !videoData) {
|
||||
router.replace(ROUTES.NEW_ANALYSIS);
|
||||
router.replace(ROUTES.UPLOAD);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ export default function ResultsPage() {
|
||||
}
|
||||
}
|
||||
sessionService.clearSession();
|
||||
router.push(ROUTES.NEW_ANALYSIS);
|
||||
router.push(ROUTES.UPLOAD);
|
||||
};
|
||||
|
||||
const getTitle = () => {
|
||||
|
||||
Reference in New Issue
Block a user