Skip to content

Commit

Permalink
improve a condition expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ddianaoo committed Sep 23, 2023
1 parent 569db69 commit cdcfab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function OneSelectChip(props) {
key={option.key}
value={option.value}
style={{
...getStyles(option.name, props.value, theme),
...getStyles(option.value, props.value, theme),
fontFamily: 'Inter, sans-serif',
fontSize: '14px',
fontWeight: 400,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ const GeneralInfo = (props) => {
updateHandler={onUpdateOneSelectField}
requredField={false}
defaultValue="Оберіть"
value={fetchedRegions.find((el) => el.key === user.regions)
? fetchedRegions.find((el) => el.key === user.regions).value
: ''}
value={fetchedRegions.find((el) => el.key === user.regions)?.value ?? ''}
/>
}
</div>
Expand Down

0 comments on commit cdcfab9

Please sign in to comment.