This commit is contained in:
Sebastian 2022-09-29 10:05:17 -03:00
parent 0cf147ba98
commit 538f27e9dd
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 10 additions and 7 deletions

View File

@ -45,6 +45,11 @@ export function BankDetailsByPaytoType({
if (payto.isKnown && payto.targetType === "bitcoin") {
const min = segwitMinAmount(amount.currency);
const addrs = payto.segwitAddrs.map(
(a) => `${a} ${Amounts.stringifyValue(min)}`,
);
addrs.unshift(`${payto.targetPath} ${Amounts.stringifyValue(amount)}`);
const copyContent = addrs.join("\n");
return (
<section
style={{
@ -85,11 +90,7 @@ export function BankDetailsByPaytoType({
</td>
<td></td>
<td>
<CopyButton
getContent={() =>
`${payto.targetPath} ${Amounts.stringifyValue(amount)} BTC`
}
/>
<CopyButton getContent={() => copyContent} />
</td>
</tr>
</table>

View File

@ -116,8 +116,10 @@ export function TransactionPage({ tid, goToWalletHistory }: Props): VNode {
onDelete={() =>
wxApi.deleteTransaction(tid).then(() => goToWalletHistory(currency))
}
onRetry={() =>
wxApi.retryTransaction(tid).then(() => goToWalletHistory(currency))
onRetry={async () =>
await wxApi
.retryTransaction(tid)
.then(() => goToWalletHistory(currency))
}
onRefund={(id) => wxApi.applyRefundFromPurchaseId(id).then()}
onBack={() => goToWalletHistory(currency)}