feat: ability to enable/disable the bank connect feature (#423)

This commit is contained in:
Ahmed Bouhuolia
2024-04-24 20:01:04 +02:00
committed by GitHub
parent 1372a1f0a8
commit 7abfa6a162
10 changed files with 58 additions and 43 deletions

View File

@@ -62,13 +62,13 @@ export default class MetableStore implements IMetableStore {
* @param {String} key -
* @param {Mixied} defaultValue -
*/
get(query: string | IMetaQuery, defaultValue: any): any | false {
get(query: string | IMetaQuery, defaultValue: any): any | null {
const metadata = this.find(query);
return metadata
? metadata.value
: typeof defaultValue !== 'undefined'
? defaultValue
: false;
: null;
}
/**