Skip to content

Commit

Permalink
IEEE-259 Clean code in CartSummary.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Karandeep Lubana committed Jan 28, 2024
1 parent 69e0f65 commit 094bacc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
hardwareSignOutStartDate,
maxTeamSize,
minTeamSize,
minProjectDescriptionLength,
} from "constants.js";

const CartSummary = () => {
Expand All @@ -34,7 +35,7 @@ const CartSummary = () => {
if (cartQuantity > 0) {
if (
projectDescription &&
projectDescription.length < MIN_DESCRIPTION_LENGTH
projectDescription.length < minProjectDescriptionLength
) {
dispatch(
displaySnackbar({
Expand All @@ -54,8 +55,6 @@ const CartSummary = () => {
currentDateTime < hardwareSignOutStartDate ||
currentDateTime > hardwareSignOutEndDate;

const MIN_DESCRIPTION_LENGTH = 50;

return (
<TitledPaper title="Cart Summary">
<Container className={styles.qty}>
Expand Down

0 comments on commit 094bacc

Please sign in to comment.