fix: Defer agent dashboard data fetching until session is authenticated and update payment success redirect to full page reload.

This commit is contained in:
pradeepkumar
2026-03-19 10:22:21 +05:30
parent 27e9fdabb4
commit 00a7cc68d1
2 changed files with 9 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ export function PaymentSuccessForm() {
{/* Action Buttons */}
<div className="flex gap-4 mb-6">
<button
onClick={() => router.push('/agent/dashboard')}
onClick={() => window.location.href = '/agent/dashboard'}
className="flex-1 bg-[#e58625] border border-[#e58625] text-white font-fractul font-bold text-[14px] py-4 rounded-[15px] hover:bg-[#d47920] transition-colors flex items-center justify-center gap-2"
>
<Image