Removed duplicate getToken function
This commit is contained in:
parent
bda0aa9ebe
commit
edffbd8971
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user