This commit is contained in:
Marcos Rodriguez Velez 2024-10-01 08:42:42 -04:00
parent 21c5b8d358
commit f55a015a9b
3 changed files with 6 additions and 5 deletions

View file

@ -362,7 +362,7 @@ const styles = StyleSheet.create({
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
marginVertical: 8,
margin: 16,
},
container: {
flexDirection: 'row',

View file

@ -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' });
}

View file

@ -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) {