2026-08-27 10:33:43 +08:00
|
|
|
import type { OceanBookingAgentOption } from './types'
|
2026-08-17 16:45:46 +08:00
|
|
|
|
2026-08-27 10:33:43 +08:00
|
|
|
export function shouldClearBookingAgent(currentSupplierId: string | null | undefined, options: OceanBookingAgentOption[]) {
|
|
|
|
|
return Boolean(currentSupplierId) && !options.some((option) => option.supplierId === String(currentSupplierId))
|
2026-08-17 16:45:46 +08:00
|
|
|
}
|