Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
salmanm committed Oct 20, 2021
1 parent e3728ea commit b8b2a81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
11 changes: 7 additions & 4 deletions src/context/secrets.js
Expand Up @@ -57,10 +57,13 @@ export function SecretsProvider({ children }) {

return (
<SecretsContext.Provider
value={useMemo(
() => ({ isInitialized, secrets, add, update, remove }),
[isInitialized, secrets, add, update, remove]
)}
value={useMemo(() => ({ isInitialized, secrets, add, update, remove }), [
isInitialized,
secrets,
add,
update,
remove,
])}
>
{children}
</SecretsContext.Provider>
Expand Down
10 changes: 6 additions & 4 deletions src/lib/secretsManager.js
Expand Up @@ -12,10 +12,12 @@ export default class SecretsManager {
}

async initialize() {
const [getEncryptionPassphrase, setEncryptionPassphrase] =
(await SecureStore.isAvailableAsync())
? [SecureStore.getItemAsync, SecureStore.setItemAsync]
: [AsyncStorage.getItem, AsyncStorage.setItem]
const [
getEncryptionPassphrase,
setEncryptionPassphrase,
] = (await SecureStore.isAvailableAsync())
? [SecureStore.getItemAsync, SecureStore.setItemAsync]
: [AsyncStorage.getItem, AsyncStorage.setItem]

const encryptionPassphrase = await getEncryptionPassphrase(
encryptionPassphraseStorageKey
Expand Down

0 comments on commit b8b2a81

Please sign in to comment.