diff --git a/src/bin/BinSelector.tsx b/src/bin/BinSelector.tsx index 3f330f7..04387a0 100644 --- a/src/bin/BinSelector.tsx +++ b/src/bin/BinSelector.tsx @@ -4,7 +4,7 @@ import SearchSelect, { Option } from "common/SearchSelect"; import { useMobile } from "hooks"; import { pond } from "protobuf-ts/pond"; import React, { useEffect, useState } from "react"; -import { getDistanceUnit } from "utils"; +import { useGlobalState } from "providers"; interface Props { optionsChanged: (binOptions: jsonBin[]) => void; @@ -13,6 +13,7 @@ interface Props { export default function BinSelector(props: Props) { const { optionsChanged, vertical } = props; + const [{user}] = useGlobalState(); const isMobile = useMobile(); const [manufacturerOptions, SetManufacturerOptions] = useState([]); const [manufacturer, SetManufacturer] = useState