Skip to content

Conversation

@Duncan-Brain
Copy link
Collaborator

Description

Comments out the isLibrary checks aroud product inventory.

Jira link: LF -5041

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Passes test case
  • UI components visually reviewed on desktop view
  • UI components visually reviewed on mobile view
  • Other (please explain)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • The precommit and linting ran successfully
  • I have added or updated language tags for text that's part of the UI
  • I have ordered translation keys alphabetically (optional: run pnpm i18n to help with this)
  • I have added the GNU General Public License to all new files

// const isLibraryProduct = product.product_translation_key;
// if (!isLibraryProduct && isUnusedByTasks) {
if (isUnusedByTasks) {
const isLibraryProduct = product.product_translation_key;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flip flopped on this for a second but I see some benefit in it staying

import { loginSelector, onLoadingFail, onLoadingStart } from './userFarmSlice';
import { pick } from '../util/pick';
import { createSelector } from 'reselect';
import { isLibraryProduct } from '../util/product';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import

@Duncan-Brain Duncan-Brain self-assigned this Dec 3, 2025
@Duncan-Brain Duncan-Brain marked this pull request as ready for review December 3, 2025 02:11
@Duncan-Brain Duncan-Brain requested review from a team as code owners December 3, 2025 02:11
@Duncan-Brain Duncan-Brain requested review from kathyavini and removed request for a team December 3, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants