Skip to content

Commit

Permalink
fix: remove Pi from amount dropdown units
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarley100 committed Mar 17, 2021
1 parent 6b00004 commit 6046374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shared/components/inputs/Amount.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
export let disabled = false
export let autofocus = false
const Units = Object.values(Unit).filter((x) => x !== 'Pi')
let dropdown = false
const clickOutside = () => {
Expand Down Expand Up @@ -67,7 +69,7 @@
{#if !disabled && dropdown}
<nav
class="absolute w-10 overflow-y-auto bg-white border border-solid border-gray-500 z-10 text-left top-10 right-0">
{#each Object.values(Unit) as _unit}
{#each Units as _unit}
<button
id={_unit}
class="text-center w-full py-2"
Expand Down

0 comments on commit 6046374

Please sign in to comment.