p2p was not returning the value
This commit is contained in:
parent
e143108254
commit
ba5f8ad386
@ -1392,8 +1392,7 @@ async function dispatchRequestInternal(
|
|||||||
}
|
}
|
||||||
case "acceptPeerPushPayment": {
|
case "acceptPeerPushPayment": {
|
||||||
const req = codecForAcceptPeerPushPaymentRequest().decode(payload);
|
const req = codecForAcceptPeerPushPaymentRequest().decode(payload);
|
||||||
await acceptPeerPushPayment(ws, req);
|
return await acceptPeerPushPayment(ws, req);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
case "initiatePeerPullPayment": {
|
case "initiatePeerPullPayment": {
|
||||||
const req = codecForInitiatePeerPullPaymentRequest().decode(payload);
|
const req = codecForInitiatePeerPullPaymentRequest().decode(payload);
|
||||||
@ -1405,8 +1404,7 @@ async function dispatchRequestInternal(
|
|||||||
}
|
}
|
||||||
case "acceptPeerPullPayment": {
|
case "acceptPeerPullPayment": {
|
||||||
const req = codecForAcceptPeerPullPaymentRequest().decode(payload);
|
const req = codecForAcceptPeerPullPaymentRequest().decode(payload);
|
||||||
await acceptPeerPullPayment(ws, req);
|
return await acceptPeerPullPayment(ws, req);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
case "getVersion": {
|
case "getVersion": {
|
||||||
const version: WalletCoreVersion = {
|
const version: WalletCoreVersion = {
|
||||||
|
@ -119,7 +119,7 @@ export function QrReaderPage({ onDetected }: Props): VNode {
|
|||||||
/>
|
/>
|
||||||
{isValid && (
|
{isValid && (
|
||||||
<Button variant="contained" onClick={async () => onDetected(value)}>
|
<Button variant="contained" onClick={async () => onDetected(value)}>
|
||||||
<i18n.Translate>Open/</i18n.Translate>
|
<i18n.Translate>Open</i18n.Translate>
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{!active && !isValid && (
|
{!active && !isValid && (
|
||||||
|
Loading…
Reference in New Issue
Block a user