fix(store): lock billing profile phone number to registration and disallow editing

This commit is contained in:
Urvish Prajapati 2026-11-05 13:06:11 +05:30
parent 79cb96ae5e
commit b865f57e4d
1 changed files with 8 additions and 6 deletions

View File

@ -332,12 +332,14 @@ export const CartDrawer: React.FC<CartDrawerProps> = ({
<span className="text-[10px] uppercase font-black tracking-wider text-slate-400">
Billing Profile
</span>
<button
onClick={onUpdateBillingPhone}
className="text-[9px] text-indigo-600 hover:text-indigo-500 font-black uppercase tracking-wider underline focus:outline-none"
>
{loggedInUser.phone_number ? 'Edit Number' : 'Add Number'}
</button>
{!loggedInUser.phone_number && (
<button
onClick={onUpdateBillingPhone}
className="text-[9px] text-indigo-600 hover:text-indigo-500 font-black uppercase tracking-wider underline focus:outline-none"
>
Add Number
</button>
)}
</div>
<div className="space-y-1">
<div className="flex justify-between text-xs font-semibold text-slate-600">