Skip to content

Improve error handling and typing in merchStore class #975

@coderabbitai

Description

@coderabbitai

Description

Enhance the merchStore class in src/entities/merch/model/store.ts with better error handling and type safety.

Tasks

  • Update loadMerchCatalog method to return an empty array instead of undefined when errors occur or when the request is not successful
  • Add proper TypeScript typing to the class and its methods
  • Ensure consistent error handling patterns across the store

Context

This issue was created as a follow-up to review comments on PR #889 that were valid but out of scope for that feature implementation.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions