fix: Defer agent dashboard data fetching until session is authenticated and update payment success redirect to full page reload.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user