fix: prevent rendering without options for specific types in InputAddress component (#11583)
This commit is contained in:
parent
7d4f132026
commit
bebd286e0e
@ -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 (
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user