This commit is contained in:
Olivier Gagnon 2021-09-30 18:57:44 -04:00
parent 73d0dd98f2
commit f701cbffa7
2 changed files with 1 additions and 5 deletions

@ -21,7 +21,6 @@ import { numeralWrapper } from "../../ui/numeralFormat";
import { Money } from "../../ui/React/Money"; import { Money } from "../../ui/React/Money";
import { dialogBoxCreate } from "../../ui/React/DialogBox"; import { dialogBoxCreate } from "../../ui/React/DialogBox";
import Typography from "@mui/material/Typography";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import TextField from "@mui/material/TextField"; import TextField from "@mui/material/TextField";
import MenuItem from "@mui/material/MenuItem"; import MenuItem from "@mui/material/MenuItem";
@ -76,7 +75,7 @@ export function StockTicker(props: IProps): React.ReactElement {
}>({ }>({
text: "", text: "",
placeText: "", placeText: "",
place: (n: number) => false, place: () => false,
}); });
function getBuyTransactionCostContent(): JSX.Element | null { function getBuyTransactionCostContent(): JSX.Element | null {

@ -40,7 +40,6 @@ type IProps = {
export function StockTickers(props: IProps): React.ReactElement { export function StockTickers(props: IProps): React.ReactElement {
const setRerender = useState(false)[1]; const setRerender = useState(false)[1];
const [tickerDisplayMode, setTickerDisplayMode] = useState(TickerDisplayMode.AllStocks); const [tickerDisplayMode, setTickerDisplayMode] = useState(TickerDisplayMode.AllStocks);
const [watchlistFilter, setWatchlistFilter] = useState("");
const [watchlistSymbols, setWatchlistSymbols] = useState<string[]>([]); const [watchlistSymbols, setWatchlistSymbols] = useState<string[]>([]);
function changeDisplayMode(): void { function changeDisplayMode(): void {
@ -55,8 +54,6 @@ export function StockTickers(props: IProps): React.ReactElement {
const watchlist = e.target.value; const watchlist = e.target.value;
const sanitizedWatchlist = watchlist.replace(/\s/g, ""); const sanitizedWatchlist = watchlist.replace(/\s/g, "");
setWatchlistFilter(watchlist);
if (sanitizedWatchlist !== "") { if (sanitizedWatchlist !== "") {
setWatchlistSymbols(sanitizedWatchlist.split(",")); setWatchlistSymbols(sanitizedWatchlist.split(","));
} else { } else {