diff --git a/app/admin/merchants/page.tsx b/app/admin/merchants/page.tsx index f80daf1..58cae9c 100644 --- a/app/admin/merchants/page.tsx +++ b/app/admin/merchants/page.tsx @@ -203,9 +203,7 @@ export default function MerchantsPage() { ) : merchants.map((m) => { const identifier = m.short_id || m.id; - const paymentLink = typeof window !== 'undefined' - ? `${window.location.origin}/checkout?merchant_id=${identifier}&amount=0` - : `https://p2cgateway.store/checkout?merchant_id=${identifier}&amount=0`; + const paymentLink = `https://p2cgateway.store/checkout?merchant_id=${identifier}&amount=0`; return (
@@ -319,7 +317,7 @@ export default function MerchantsPage() { className="text-[11px] font-mono truncate text-gray-500 hover:text-blue-600 transition-colors flex-1 flex items-center gap-1.5" title="Linki AƧ" > - {typeof window !== 'undefined' ? window.location.origin : 'https://p2cgateway.store'}/checkout?merchant_id={identifier}&amount=0 + https://p2cgateway.store/checkout?merchant_id={identifier}&amount=0