Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

@ArtyomSavchenko ArtyomSavchenko commented Oct 27, 2025

image

Signed-off-by: Artem Savchenko <armisav@gmail.com>
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 an error that occurs when a message translation is not a string value. The code now includes type checking before attempting to call .trim() on translation values, preventing runtime errors when message.translates?.[translateTo] returns a non-string value.

Key Changes:

  • Added explicit type checking for translation values before calling string methods
  • Applied the fix to both hasTranslate and getMessageTranslation functions

@huly-github-staging
Copy link

Connected to Huly®: UBERF-13992

@BykhovDenis BykhovDenis merged commit 180a96f into develop Oct 27, 2025
25 of 26 checks passed
@BykhovDenis BykhovDenis deleted the fix-gmail-error branch October 27, 2025 05:23
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.

5 participants