Removed duplicate getToken function

This commit is contained in:
Mitchell McCaffrey 2021-01-25 08:19:48 +11:00
parent bda0aa9ebe
commit edffbd8971

View File

@ -185,11 +185,6 @@ export function TokenDataProvider({ children }) {
[database, updateCache, userId]
);
async function getTokenFromDB(tokenId) {
let token = await database.table("tokens").get(tokenId);
return token;
}
const ownedTokens = tokens.filter((token) => token.owner === userId);
const tokensById = tokens.reduce((obj, token) => {