Skip to content

Commit

Permalink
Type CurrencySelector.displayValue as Currency
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Jan 8, 2024
1 parent f581a6a commit 8596b76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/CurrencySelector.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -60,7 +59,7 @@ function CurrencySelector(props: Props) {
<Combobox.Input
ref={inputRef}
className="w-full border-r border-gray-l3 dark:border-bluegray px-4 py-3.5 text-sm leading-5 text-gray-900 focus:ring-0"
displayValue={(currency: WiseCurrency) =>
displayValue={(currency: Currency) =>
!!currency.name
? `${currency.code} - ${currency.name}`
: currency.code
Expand Down

0 comments on commit 8596b76

Please sign in to comment.