Skip to content

Issue: Duplicate helper function across taxonomy components #2761

@Suresh-Krishna-P

Description

@Suresh-Krishna-P

The helper function FormatToDoubleDigitSearchstring is duplicated in both:

  • webAppCardTaxonomy.svelte
  • mobileAppCardTaxonomy.svelte

Expected
Shared logic should be extracted to a common utility module and imported in both components.

Why

  • Reduces code duplication
  • Improves maintainability
  • Prevents inconsistent behavior if the formatting logic ever changes

Proposed fix

  • Create src/lib/utils/formatSearchString.ts or similar
  • Move FormatToDoubleDigitSearchstring there
  • Import and use it from both components

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions