File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
packages/manager/apps/account-creation/src/pages Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments