fix #7332
This commit is contained in:
parent
0cf147ba98
commit
538f27e9dd
@ -45,6 +45,11 @@ export function BankDetailsByPaytoType({
|
|||||||
|
|
||||||
if (payto.isKnown && payto.targetType === "bitcoin") {
|
if (payto.isKnown && payto.targetType === "bitcoin") {
|
||||||
const min = segwitMinAmount(amount.currency);
|
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 (
|
return (
|
||||||
<section
|
<section
|
||||||
style={{
|
style={{
|
||||||
@ -85,11 +90,7 @@ export function BankDetailsByPaytoType({
|
|||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
<CopyButton
|
<CopyButton getContent={() => copyContent} />
|
||||||
getContent={() =>
|
|
||||||
`${payto.targetPath} ${Amounts.stringifyValue(amount)} BTC`
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -116,8 +116,10 @@ export function TransactionPage({ tid, goToWalletHistory }: Props): VNode {
|
|||||||
onDelete={() =>
|
onDelete={() =>
|
||||||
wxApi.deleteTransaction(tid).then(() => goToWalletHistory(currency))
|
wxApi.deleteTransaction(tid).then(() => goToWalletHistory(currency))
|
||||||
}
|
}
|
||||||
onRetry={() =>
|
onRetry={async () =>
|
||||||
wxApi.retryTransaction(tid).then(() => goToWalletHistory(currency))
|
await wxApi
|
||||||
|
.retryTransaction(tid)
|
||||||
|
.then(() => goToWalletHistory(currency))
|
||||||
}
|
}
|
||||||
onRefund={(id) => wxApi.applyRefundFromPurchaseId(id).then()}
|
onRefund={(id) => wxApi.applyRefundFromPurchaseId(id).then()}
|
||||||
onBack={() => goToWalletHistory(currency)}
|
onBack={() => goToWalletHistory(currency)}
|
||||||
|
Loading…
Reference in New Issue
Block a user