Use the correct non english guide in services if it exists (#19957)

This commit is contained in:
Jorge Gustavo Rocha 2025-02-25 05:42:18 +00:00 committed by GitHub
parent 08fbd32871
commit 4c70110690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,10 +104,10 @@ const ServiceDocPanel: FC<ServiceDocPanelProp> = ({
if (translation.status === 'fulfilled') {
response = translation.value;
}
if (!isEnglishLanguage && fallbackTranslation.status === 'fulfilled') {
response = fallbackTranslation.value;
} else {
if (fallbackTranslation.status === 'fulfilled') {
response = fallbackTranslation.value;
}
}
setMarkdownContent(response);