Wallet update for correct name and symbol appearance
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:pshared/models/wallet/wallet.dart' as domain;
|
||||
|
||||
import 'package:pshared/models/currency.dart';
|
||||
import 'package:pshared/models/describable.dart';
|
||||
|
||||
import 'package:pweb/models/wallet.dart';
|
||||
|
||||
@@ -17,7 +18,6 @@ extension WalletUiMapper on domain.WalletModel {
|
||||
return Wallet(
|
||||
id: walletRef,
|
||||
walletUserID: walletRef,
|
||||
name: metadata?['name'] ?? walletRef,
|
||||
balance: parsedAmount,
|
||||
currency: currency,
|
||||
isHidden: true,
|
||||
@@ -26,6 +26,10 @@ extension WalletUiMapper on domain.WalletModel {
|
||||
network: asset.chain,
|
||||
tokenSymbol: asset.tokenSymbol,
|
||||
contractAddress: asset.contractAddress,
|
||||
describable: newDescribable(
|
||||
name: metadata?['name'] ?? 'Crypto Wallet',
|
||||
description: metadata?['description'],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user