Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

No description provided.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-14184

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a runtime error that occurs in the billing settings component when the payment URL is not configured. When paymentUrl is null or empty, the groups array is filtered to exclude subscriptions, resulting in an empty array. Accessing groups[0].key on an empty array causes a runtime error.

Key Changes:

  • Added optional chaining to safely access groups[0]?.key on line 67, preventing crashes when the groups array is empty

@ArtyomSavchenko ArtyomSavchenko merged commit c9ef10b into develop Nov 21, 2025
21 checks passed
@BykhovDenis BykhovDenis deleted the fix-billing branch November 23, 2025 16:29
@ArtyomSavchenko ArtyomSavchenko linked an issue Nov 24, 2025 that may be closed by this pull request
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.

Issue in the billing menu

3 participants