commit | c8628b1f32a458f10d95361925dcaef249a0a958 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sun Nov 10 22:29:45 2024 +0100 |
committer | Adrià Vilanova <me@avm99963.com> | Sun Nov 10 22:09:50 2024 +0000 |
tree | 75e34e0f4f78711d0f267be1a573e3cb6b924277 | |
parent | 80f6c9f54d2f39b8b4d159a4f64f5ca04c7d3d95 [diff] |
fix(options-provider): don't set up more than once The options provider was never marked as set up, so it would be set up continuously when it received a call to one of its methods. This commits fixes this. Change-Id: Ifdbf7add61ee6542a8d52250afa12493728d5cab
diff --git a/src/infrastructure/services/options/OptionsProvider.adapter.ts b/src/infrastructure/services/options/OptionsProvider.adapter.ts index e5570fe..d09d994 100644 --- a/src/infrastructure/services/options/OptionsProvider.adapter.ts +++ b/src/infrastructure/services/options/OptionsProvider.adapter.ts
@@ -55,6 +55,7 @@ private setUp() { if (this.isSetUp) return; + this.isSetUp = true; this.listenForStorageChanges(); this.updateValues(); }