Return early if key is null

This commit is contained in:
Vishnu Mohandas 2021-02-17 14:46:20 +05:30
parent 209dd4d1df
commit 1104a9d919

View file

@ -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();