fix(onboarding): keep wildcard allowFrom helper string-typed

This commit is contained in:
Peter Steinberger 2026-02-16 22:55:46 +00:00
parent 64f5e4a424
commit 97e0f8d551
1 changed files with 1 additions and 3 deletions

View File

@ -5,9 +5,7 @@ export const promptAccountId: PromptAccountId = async (params: PromptAccountIdPa
return await promptAccountIdSdk(params);
};
export function addWildcardAllowFrom(
allowFrom?: Array<string | number> | null,
): Array<string | number> {
export function addWildcardAllowFrom(allowFrom?: Array<string | number> | null): string[] {
const next = (allowFrom ?? []).map((v) => String(v).trim()).filter(Boolean);
if (!next.includes("*")) {
next.push("*");