Skip to content

Commit

Permalink
Database Modal:
Browse files Browse the repository at this point in the history
- Reduce if clause so it's more concise
  • Loading branch information
Antonio-RiveroMartnez committed Jun 28, 2022
1 parent 082dadc commit 8eb07a6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -979,9 +979,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
passwords,
confirmedOverwrite,
);
if (dbId) {
if (onDatabaseAdd) onDatabaseAdd();
}
if (dbId) onDatabaseAdd?.();
};

const passwordNeededField = () => {
Expand Down

0 comments on commit 8eb07a6

Please sign in to comment.