fix: prevent rendering without options for specific types in InputAddress component (#11583)

This commit is contained in:
Arjun Porwal 2025-05-28 17:56:34 +05:30 committed by GitHub
parent 7d4f132026
commit bebd286e0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class InputAddress extends React.PureComponent<Props, State> {
const hasOptions = (options && options.length !== 0) || (optionsAll && Object.keys(optionsAll[type]).length !== 0);
// the options could be delayed, don't render without
if (!hasOptions && !isDisabled) {
if (!hasOptions && !isDisabled && !['allPlus'].includes(type)) {
// This is nasty, but since this things is non-functional, there is not much
// we can do (well, wrap it, however that approach is deprecated here)
return (

View File

@ -56,7 +56,7 @@ function Account (props: Props): React.ReactElement<Props> {
isInput
label={label}
onChange={_onChange}
placeholder='5...'
placeholder='5GLFK...'
type='allPlus'
withEllipsis
withLabel={withLabel}