denormalized PairEntry, cleaned up console logs
This commit is contained in:
@@ -18,12 +18,10 @@ export const useStore = defineStore('app', {
|
||||
getters: {
|
||||
chain: (s)=> !s.chainInfo ? null : (s.chainInfo[s.chainId] || null),
|
||||
tokens: (s)=>{
|
||||
console.log('tokensget',s)
|
||||
let known = knownTokens[s.chainId]
|
||||
known = known ? Object.values(known) : []
|
||||
let extras = s.extraTokens[s.chainId]
|
||||
extras = extras ? Object.values(extras) : []
|
||||
console.log('tokens for chainId',s.chainId, known, extras)
|
||||
return [...known, ...extras]
|
||||
},
|
||||
factory: (s)=>!s.chain?null:s.chain.factory,
|
||||
@@ -34,7 +32,6 @@ export const useStore = defineStore('app', {
|
||||
this.errors.push({title, text, closeable})
|
||||
},
|
||||
closeError(title, text) {
|
||||
console.log('closing error', title, text)
|
||||
const result = []
|
||||
this.errors.forEach((i)=>{if(i.title!==title && i.text!==text) result.push(i)})
|
||||
this.errors = result
|
||||
|
||||
Reference in New Issue
Block a user