fix: simplify condition for displaying pending payment link in ClickableRow component 🐛
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 18m1s

This commit is contained in:
2025-07-11 09:59:29 +05:00
parent 71f48b1270
commit d1fdcc873a

View File

@ -64,7 +64,7 @@ export default function ClickableRow({
) : (
<p className="text-muted-foreground">Device Inactive</p>
)}
{device.has_a_pending_payment && device.pending_payment_id !== null && (
{device.has_a_pending_payment && (
<Link href={`/payments/${device.pending_payment_id}`}>
<span className="bg-muted rounded px-2 p-1 mt-2 flex hover:underline items-center justify-center gap-2 text-muted-foreground">
Payment Pending{" "}