Skip to content

Commit

Permalink
Addressed nits on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
WishingWell13 committed Apr 17, 2024
1 parent 9f49655 commit 5d96fa1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/components/events/EventCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ const EventCard = ({
<Link
href={`${config.eventsRoute}/${uuid}`}
data-community={community}
data-disabled={borderless ? 'true' : 'false'}
className={`${styles.container} ${borderless ? 'disabled' : styles.bordered} ${
className || ''
}`}
data-disabled={borderless}
className={`${styles.container} ${borderless ? '' : styles.bordered} ${className || ''}`}
onClick={e => {
e.preventDefault();
setExpanded(true);
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/EventCard/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
border-radius: 10px;
}

&:not([data-disabled='true']):hover {
&:not([data-disabled]):hover {
outline-width: 4px;
transform: scale(0.975);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/store/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const getServerSidePropsFunc: GetServerSideProps = async ({ req, res }) => {
events
.filter(event => event.status !== 'CANCELLED')
.filter(
event => (event.orders?.length ?? 0) <= (event?.orderLimit ?? Number.MAX_SAFE_INTEGER)
event => !(event.orders && event.orderLimit && event.orders.length > event.orderLimit)
)
);
const userPromise = getCurrentUserAndRefreshCookie(AUTH_TOKEN, { req, res });
Expand Down

0 comments on commit 5d96fa1

Please sign in to comment.