From c4dc2c5a70b6754aa819ab9d0a09b2a4973dc8f0 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 21 Mar 2025 12:55:12 -0400 Subject: [PATCH] Replace toString with type assertion --- src/apps/dashboard/routes/branding/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/dashboard/routes/branding/index.tsx b/src/apps/dashboard/routes/branding/index.tsx index 8e565127b..493c222c6 100644 --- a/src/apps/dashboard/routes/branding/index.tsx +++ b/src/apps/dashboard/routes/branding/index.tsx @@ -124,7 +124,7 @@ export const Component = () => { reader.onload = () => { if (!reader.result) return; - const dataUrl = reader.result.toString(); + const dataUrl = reader.result as string; // readAsDataURL produces a string // FIXME: TypeScript SDK thinks body should be a File but in reality it is a Base64 string const body = dataUrl.split(',')[1] as never; getImageApi(api)