fix(onboarding): keep wildcard allowFrom helper string-typed
This commit is contained in:
@@ -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("*");
|
||||
|
||||
Reference in New Issue
Block a user