Skip to content

Commit 8051acd

Browse files
committed
fix(account-creation): improve company search
ref: #MANAGER-20993 Signed-off-by: Dustin Kroger <dustin.kroger.ext@ovhcloud.com>
1 parent cf9ad74 commit 8051acd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/manager/apps/account-creation/src/pages/company/Company.page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ export default function CompanyPage() {
217217
isReadonly={isFetching}
218218
hasError={!!errors.search}
219219
onOdsChange={(event) => {
220-
const nextValue = String(
221-
event.detail?.value ?? '',
222-
).replace(/\s+/g, '');
220+
const rawValue = String(event.detail?.value ?? '');
221+
const numericValue = rawValue.replace(/\s+/g, '');
222+
const nextValue = /^\d+$/.test(numericValue)
223+
? numericValue
224+
: rawValue;
223225
onChange(nextValue);
224226
}}
225227
onBlur={onBlur}

packages/manager/apps/account-creation/src/pages/settings/settings.constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export const WEBSITE_LABEL_BY_LOCALE = {
1616
'en-CA': 'OVHcloud Canada (English)',
1717
'en-AU': 'OVHcloud Australia (English)',
1818
'en-SG': 'OVHcloud Singapore (English)',
19-
'zh-SG': 'OVHcloud 新加坡 (中文)',
19+
'zh-SG': 'OVHcloud Singapore (Chinese)',
2020
'fr-CA': 'OVHcloud Canada (Français)',
21-
'hi-IN': 'OVHcloud भारत (हिंदी)',
21+
'hi-IN': 'OVHcloud India (Hindi)',
2222
'en-IN': 'OVHcloud India (English)',
2323
'en-US': 'OVHcloud United States (English)',
2424
};

0 commit comments

Comments
 (0)