Fix crash when paying not yet supported cashu PR with POST transport

This commit is contained in:
minibits-cash
2025-06-27 00:15:57 +02:00
parent 73e11bbe0b
commit 0c8cc58ba0
+2 -2
View File
@@ -302,7 +302,7 @@ export const SendScreen = observer(function SendScreen({ route }: Props) {
}
if (transport.type == PaymentRequestTransportType.POST) {
// TODO
throw new AppError(Err.VALIDATION_ERROR, 'Payment requests with POST transport are not supported yet.')
}
}
@@ -1697,7 +1697,7 @@ const ContactItem = function (props: {
style={[{flexDirection: 'column', alignItems: 'center'}, props.containerStyle]}
onPress={props.onPress}
>
{props.contact.picture ? (
{props.contact && props.contact.picture ? (
<View style={{borderRadius: 20, overflow: 'hidden'}}>
<FastImage style={[
$profileIcon, {