feat: update submit button text based on agent verification statusfix
This commit is contained in:
@@ -454,7 +454,11 @@ export default function EditProfilePage() {
|
|||||||
{isSaving && (
|
{isSaving && (
|
||||||
<div className="animate-spin rounded-full h-4 w-4 border-b-2 border-white"></div>
|
<div className="animate-spin rounded-full h-4 w-4 border-b-2 border-white"></div>
|
||||||
)}
|
)}
|
||||||
{isSaving ? 'Submitting...' : 'Submit for Review'}
|
{(() => {
|
||||||
|
const isApproved = agentProfile?.verificationStatus === 'APPROVED';
|
||||||
|
if (isSaving) return isApproved ? 'Saving...' : 'Submitting...';
|
||||||
|
return isApproved ? 'Save Changes' : 'Submit for Review';
|
||||||
|
})()}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user