From ea7fad63a6c6f0c62160c7b7fdfdb5bdaf6d64f0 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 1 Jul 2020 13:39:41 +0200 Subject: [PATCH] Ignore .DS_Store (#339) As per https://github.com/polkadot-js/ui/issues/337#issuecomment-651617556 --- packages/ui-keyring/src/stores/File.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-keyring/src/stores/File.ts b/packages/ui-keyring/src/stores/File.ts index 9b82b451..98eb18a7 100644 --- a/packages/ui-keyring/src/stores/File.ts +++ b/packages/ui-keyring/src/stores/File.ts @@ -23,7 +23,7 @@ export default class FileStore implements KeyringStore { public all (cb: (key: string, value: KeyringJson) => void): void { fs .readdirSync(this.#path) - .filter((key): boolean => !['.', '..'].includes(key)) + .filter((key): boolean => !['.', '..', '.DS_Store'].includes(key)) .forEach((key): void => { cb(key, this._readKey(key)); });