Skip to content

Commit

Permalink
putting mapfield in rules.ts back to the way it was as it isn't neede…
Browse files Browse the repository at this point in the history
…d for this code push
  • Loading branch information
MikesGlitch committed Oct 4, 2023
1 parent e68916d commit 7aba017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ type CreateEncryptionKeyProps = {
modalProps: CommonModalProps;
actions: BoundActions;
options: {
recreate: boolean;
recreate?: boolean;
};
};

export default function CreateEncryptionKey({
modalProps,
actions,
options,
options = {},
}: CreateEncryptionKeyProps) {
let [password, setPassword] = useState('');
let [loading, setLoading] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion packages/loot-core/src/shared/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const FIELD_TYPES = new Map(
}),
);

export function mapField(field, opts = undefined) {
export function mapField(field, opts) {
opts = opts || {};

switch (field) {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1755.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [MikesGlitch]
---

Convert CreateAccount and CreateEncryptionKey components to TypeScript.

0 comments on commit 7aba017

Please sign in to comment.