remove unnecessary code
This commit is contained in:
parent
749427a432
commit
5c9413ec0a
|
@ -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]);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue