diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index 8815f68da3..87ed84c25c 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.108.54 +0.1.108.55 diff --git a/frontend/src/components/payment/providerConfig.ts b/frontend/src/components/payment/providerConfig.ts index 8011eb81f3..5def85629d 100644 --- a/frontend/src/components/payment/providerConfig.ts +++ b/frontend/src/components/payment/providerConfig.ts @@ -84,7 +84,9 @@ export const PROVIDER_CONFIG_FIELDS: Record = { // --- Helpers --- /** Parse comma-separated types string into array. */ -export function parseTypes(raw: string): string[] { +export function parseTypes(raw: string | string[]): string[] { + if (Array.isArray(raw)) return raw.map(s => s.trim()).filter(Boolean) + if (!raw) return [] return raw.split(',').map(s => s.trim()).filter(Boolean) }