From 77fb6c0d88e9889199c0e859dbade53f638ddfd4 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 26 May 2023 10:09:56 -0300
Subject: fix compile

---
 packages/exchange-backoffice-ui/src/handlers/InputSelectOne.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/exchange-backoffice-ui/src/handlers/InputSelectOne.tsx')

diff --git a/packages/exchange-backoffice-ui/src/handlers/InputSelectOne.tsx b/packages/exchange-backoffice-ui/src/handlers/InputSelectOne.tsx
index 9af446e6c..b0e2277d3 100644
--- a/packages/exchange-backoffice-ui/src/handlers/InputSelectOne.tsx
+++ b/packages/exchange-backoffice-ui/src/handlers/InputSelectOne.tsx
@@ -6,7 +6,7 @@ import { useState } from "preact/hooks";
 
 export function InputSelectOne<T extends object, K extends keyof T>(
   props: {
-    choices: Choice[];
+    choices: Choice<T[K]>[];
   } & UIFormProps<T, K>,
 ): VNode {
   const { name, label, choices, placeholder, tooltip, required } = props;
@@ -15,7 +15,7 @@ export function InputSelectOne<T extends object, K extends keyof T>(
   const [filter, setFilter] = useState<string | undefined>(undefined);
   const regex = new RegExp(`.*${filter}.*`, "i");
   const choiceMap = choices.reduce((prev, curr) => {
-    return { ...prev, [curr.value]: curr.label };
+    return { ...prev, [curr.value as string]: curr.label };
   }, {} as Record<string, string>);
 
   const filteredChoices =
-- 
cgit v1.2.3

