Skip to content

Commit 87bfb71

Browse files
author
Lucas Araujo
committed
[DDW_812] Remove unnecessary localhost read
1 parent 77bcc54 commit 87bfb71

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/renderer/app/api/api.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,7 @@ export default class AdaApi {
246246

247247
getWallets = async (): Promise<Array<Wallet>> => {
248248
logger.debug('AdaApi::getWallets called');
249-
const {
250-
getHardwareWalletLocalData,
251-
getHardwareWalletsLocalData,
252-
} = global.daedalus.api.localStorage;
249+
const { getHardwareWalletsLocalData } = global.daedalus.api.localStorage;
253250

254251
try {
255252
const wallets: Array<AdaWallet | LegacyAdaWallet> = await getWallets(
@@ -281,7 +278,9 @@ export default class AdaApi {
281278
return await Promise.all(
282279
wallets.map(async (wallet: AdaWallet) => {
283280
const { id } = wallet;
284-
const walletData = await getHardwareWalletLocalData(id);
281+
282+
const walletData = hwLocalData[id];
283+
285284
return _createWalletFromServerData({
286285
...wallet,
287286
isHardwareWallet:

0 commit comments

Comments
 (0)