Skip to content

Commit

Permalink
feat: 🐛 minor code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed May 10, 2023
1 parent 157fb40 commit 62a0f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/account/src/Components/forms/idv-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const IDVForm = ({
document_name === 'document_number' ? values.document_type : values.document_type.additional;
let current_input: string | null = null;
current_input = example_format.includes('-')
? formatInput(example_format, current_input || e.target.value, '-')
? formatInput(example_format, current_input ?? e.target.value, '-')
: e.target.value;
setFieldValue(document_name, current_input, true);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const PoiConfirmWithExampleFormContainer = ({
const makeSettingsRequest = (settings: TValues) => {
const request = filterObjProperties(
settings,
rest_state?.changeable_fields ? [...rest_state?.changeable_fields] : []
rest_state?.changeable_fields ? [...rest_state.changeable_fields] : []
);

if (request.first_name) {
Expand Down

0 comments on commit 62a0f7a

Please sign in to comment.