From 8596b7601f71497043a961ee0eb7a3a4c553511f Mon Sep 17 00:00:00 2001 From: Nenad Date: Mon, 8 Jan 2024 09:42:10 +0100 Subject: [PATCH] Type CurrencySelector.displayValue as Currency --- src/components/CurrencySelector.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/CurrencySelector.tsx b/src/components/CurrencySelector.tsx index ef038ee8fc..48fde4e0ce 100644 --- a/src/components/CurrencySelector.tsx +++ b/src/components/CurrencySelector.tsx @@ -1,6 +1,5 @@ import { Combobox, Transition } from "@headlessui/react"; import { Fragment, memo, useRef, useState } from "react"; -import { WiseCurrency } from "types/aws"; import { isEmpty } from "helpers"; import { DrawerIcon } from "./Icon"; import { Label } from "./form"; @@ -60,7 +59,7 @@ function CurrencySelector(props: Props) { + displayValue={(currency: Currency) => !!currency.name ? `${currency.code} - ${currency.name}` : currency.code