fix: thêm thành viên ngoài hệ thống vào Tour
This commit is contained in:
@@ -498,12 +498,12 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin
|
||||
<select className="w-full px-3 py-2 bg-white border border-gray-200 rounded-xl outline-none text-sm"
|
||||
value={formData.paidById} onChange={e => setFormData({...formData, paidById: e.target.value})}>
|
||||
<option value="">-- Chọn người thanh toán --</option>
|
||||
{currentTour?.participants?.filter((p: any) => p.user)?.map((p: any) => {
|
||||
const name = p.user?.name;
|
||||
{currentTour?.participants?.filter((p: any) => p.user || p.displayName)?.map((p: any) => {
|
||||
const name = p.user?.name || p.displayName;
|
||||
const email = p.user?.email;
|
||||
const label = [name, email && name ? `(${email})` : email].filter(Boolean).join(' ');
|
||||
return (
|
||||
<option key={p.userId} value={p.userId}>{label || p.userId}</option>
|
||||
<option key={p.id} value={p.userId || p.id}>{label || p.userId || p.id}</option>
|
||||
);
|
||||
})}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user