mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-12 10:30:36 +01:00
wip
This commit is contained in:
parent
21c5b8d358
commit
f55a015a9b
3 changed files with 6 additions and 5 deletions
|
@ -362,7 +362,7 @@ const styles = StyleSheet.create({
|
|||
flexDirection: 'row',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
marginVertical: 8,
|
||||
margin: 16,
|
||||
},
|
||||
container: {
|
||||
flexDirection: 'row',
|
||||
|
|
|
@ -64,7 +64,8 @@ const PsbtWithHardwareWallet = () => {
|
|||
};
|
||||
|
||||
const onBarScanned = ret => {
|
||||
if (ret && !ret.data) ret = { data: ret };
|
||||
if (!ret) return;
|
||||
if (ret !== undefined && ret.data) ret = { data: ret };
|
||||
if (ret.data.toUpperCase().startsWith('UR')) {
|
||||
presentAlert({ message: 'BC-UR not decoded. This should never happen' });
|
||||
}
|
||||
|
|
|
@ -74,11 +74,11 @@ const WalletDetails: React.FC = () => {
|
|||
const walletTransactionsLength = useMemo<number>(() => wallet.getTransactions().length, [wallet]);
|
||||
const derivationPath = useMemo<string | null>(() => {
|
||||
try {
|
||||
// @ts--error: Need to fix later
|
||||
// @ts-expect-error: Need to fix later
|
||||
if (wallet.getDerivationPath) {
|
||||
// @ts-expect-error: Need to fix later
|
||||
const path = wallet.getDerivationPath();
|
||||
return path.length > 0 ? path : null;
|
||||
const path = wallt.getDerivationPath();
|
||||
return path.lengthe > 0 ? path : null;
|
||||
}
|
||||
return null;
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue