p2p was not returning the value

This commit is contained in:
Sebastian 2022-09-17 18:40:03 -03:00
parent e143108254
commit ba5f8ad386
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 3 additions and 5 deletions

View File

@ -1392,8 +1392,7 @@ async function dispatchRequestInternal(
}
case "acceptPeerPushPayment": {
const req = codecForAcceptPeerPushPaymentRequest().decode(payload);
await acceptPeerPushPayment(ws, req);
return {};
return await acceptPeerPushPayment(ws, req);
}
case "initiatePeerPullPayment": {
const req = codecForInitiatePeerPullPaymentRequest().decode(payload);
@ -1405,8 +1404,7 @@ async function dispatchRequestInternal(
}
case "acceptPeerPullPayment": {
const req = codecForAcceptPeerPullPaymentRequest().decode(payload);
await acceptPeerPullPayment(ws, req);
return {};
return await acceptPeerPullPayment(ws, req);
}
case "getVersion": {
const version: WalletCoreVersion = {

View File

@ -119,7 +119,7 @@ export function QrReaderPage({ onDetected }: Props): VNode {
/>
{isValid && (
<Button variant="contained" onClick={async () => onDetected(value)}>
<i18n.Translate>Open/</i18n.Translate>
<i18n.Translate>Open</i18n.Translate>
</Button>
)}
{!active && !isValid && (