Return early if key is null
This commit is contained in:
parent
209dd4d1df
commit
1104a9d919
|
@ -121,6 +121,7 @@ export default function Gallery(props) {
|
|||
const key = getKey(SESSION_KEYS.ENCRYPTION_KEY);
|
||||
if (!key) {
|
||||
router.push('/');
|
||||
return;
|
||||
}
|
||||
const main = async () => {
|
||||
const data = await localFiles();
|
||||
|
|
Loading…
Reference in a new issue