Skip to content

Commit 11105b0

Browse files
committed
review fixes II
1 parent 6c791ad commit 11105b0

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/store/Accounts.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,9 @@ export class Accounts implements IModule {
336336
new Encryption(wordArray.toString())
337337
);
338338
// if not uuidv4 regen
339-
if (
340-
!entry.hash.match(
341-
/[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}/i
342-
)
343-
) {
339+
if (/[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}/i.test(entry.hash)) {
344340
removeHashes.push(entry.hash);
345-
await entry.genUUID();
341+
entry.genUUID();
346342
}
347343
}
348344

0 commit comments

Comments
 (0)