From 0c8cc58ba02ba407dc28e053e6f6607ad9851b60 Mon Sep 17 00:00:00 2001 From: minibits-cash Date: Fri, 27 Jun 2025 00:15:57 +0200 Subject: [PATCH] Fix crash when paying not yet supported cashu PR with POST transport --- src/screens/SendScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/SendScreen.tsx b/src/screens/SendScreen.tsx index 52c7668..17868bc 100644 --- a/src/screens/SendScreen.tsx +++ b/src/screens/SendScreen.tsx @@ -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 ? (