Skip to content

Commit

Permalink
fix: remove production conition
Browse files Browse the repository at this point in the history
  • Loading branch information
WONYOUNG-HC committed Oct 31, 2024
1 parent 1a94a21 commit 8cdd83d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/CotatoDropBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const CotatoDropBox = <T extends CotatoDropBoxType>({

const dropBoxRef = useRef<HTMLDivElement>(null);

const isInProduction = process.env.NODE_ENV === 'production';
// const isInProduction = process.env.NODE_ENV === 'production';

/**
*
Expand Down Expand Up @@ -190,11 +190,11 @@ const CotatoDropBox = <T extends CotatoDropBoxType>({
*/
useEffect(() => {
let newList = [...list];
if (isInProduction && isTypeGeneration(list[0])) {
newList = newList.filter(
(generation: CotatoGenerationInfoResponse) => generation.generationNumber! >= 8,
);
}
// if (isInProduction && isTypeGeneration(list[0])) {
// newList = newList.filter(
// (generation: CotatoGenerationInfoResponse) => generation.generationNumber! >= 8,
// );
// }

if (reversed) {
newList = [...newList].reverse();
Expand Down

0 comments on commit 8cdd83d

Please sign in to comment.