From feb8cb4aaa5967c8364ed1f02416abb30a818187 Mon Sep 17 00:00:00 2001 From: Naveed Elahi Date: Thu, 19 Oct 2023 16:59:11 +0800 Subject: [PATCH] fix incorrect ref to whitelabel response --- packages/modal/src/modalManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/modal/src/modalManager.ts b/packages/modal/src/modalManager.ts index 16d6b50b0..d5abe58e5 100644 --- a/packages/modal/src/modalManager.ts +++ b/packages/modal/src/modalManager.ts @@ -37,8 +37,8 @@ const getWhiteLabel = async (clientId: string): Promise => { } const url = new URL(`${signerHost}/api/whitelabel`); url.searchParams.append("project_id", clientId); - const res = await get<{ whiteLabel: WhiteLabelData }>(url.href); - return res.whiteLabel; + const res = await get<{ whitelabel: WhiteLabelData }>(url.href); + return res.whitelabel; } catch (e) { throw new Error(`Failed to get whitelabel config: ${(e as Error).message}`); }