fix loading active tokens error

This commit is contained in:
Mikhail Mikheev 2019-04-22 16:43:33 +04:00
parent 8f9eadb6c3
commit 1c95804b54
1 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,10 @@ export const saveActiveTokens = async (tokens: Map<string, Token>) => {
}
}
export const getActiveTokens = async (): Promise<Map<string, TokenProps>> => {
export const getActiveTokens = async (): Promise<Object<string, TokenProps>> => {
const data = await loadFromStorage(ACTIVE_TOKENS_KEY)
return data || Map({})
return data || {}
}
export const getCustomTokens = async (): Promise<List<TokenProps>> => {