Skip to content

Commit

Permalink
fix: react useMemo hook in prod env
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Jan 10, 2024
1 parent 84a4a87 commit c3bca6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/routes/admin/Market.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function Market() {
const sync = useRef<boolean>(false);

const update = async (): Promise<void> => {
const preflight = form.filter((_, idx) => doCheck(idx));
const preflight = form.filter((model) => model.id.trim().length > 0 && model.name.trim().length > 0);
const resp = await updateMarket(preflight);

if (!resp.status) {
Expand Down

0 comments on commit c3bca6b

Please sign in to comment.