fix: confirming state, hide amt, addr

This commit is contained in:
nate 2026-03-19 12:50:55 +04:00
parent 7ba11614e7
commit 9cf70ab8dd
1 changed files with 4 additions and 1 deletions

View File

@ -112,7 +112,7 @@
</div>
<% } %>
<% if (inv.status !== 'paid' && inv.status !== 'expired') { %>
<% if (inv.status === 'pending' || inv.status === 'underpaid') { %>
<!-- Amount -->
<div>
<div class="text-2xl font-bold font-mono text-gray-100"><%= received > 0 && remaining > 0 ? remaining.toFixed(8) : inv.amount_crypto %></div>
@ -165,6 +165,9 @@
<span class="w-2 h-2 rounded-full bg-blue-500 animate-pulse"></span>
<span class="text-blue-400">Transaction received, waiting for 1 confirmation...</span>
</div>
<% if (inv.address) { %>
<a href="https://transaction.st/address/<%= inv.address %>" target="_blank" rel="noopener" class="block text-xs text-gray-500 hover:text-gray-400 transition-colors">View on block explorer &rarr;</a>
<% } %>
<% } else if (inv.status === 'paid') { %>
<div class="w-16 h-16 mx-auto rounded-full bg-green-500/10 border border-green-500/20 flex items-center justify-center mb-2">