remove unnecessary code

This commit is contained in:
Abhinav 2023-12-07 11:01:25 +05:30
parent 749427a432
commit 5c9413ec0a
2 changed files with 0 additions and 14 deletions

View file

@ -98,16 +98,6 @@ const PhotoFrame = ({
h: window.innerHeight,
title: item.pubMagicMetadata?.data.caption,
};
// try {
// if (thumbsStore.has(item.id)) {
// updateFileMsrcProps(filteredItem, thumbsStore.get(item.id));
// }
// if (filesStore.has(item.id)) {
// updateFileSrcProps(filteredItem, filesStore.get(item.id));
// }
// } catch (e) {
// logError(e, 'PhotoFrame url prefill failed');
// }
return filteredItem;
});
}, [files]);

View file

@ -1,12 +1,8 @@
import { CustomError } from '@ente/shared/error';
import { LS_KEYS, getData, setData } from '.';
import { Language } from '@ente/shared/i18n/locale';
export const getToken = (): string => {
const token = getData(LS_KEYS.USER)?.token;
if (!token) {
throw Error(CustomError.TOKEN_MISSING);
}
return token;
};