Skip to content

Commit

Permalink
fix(snap-preact): move controller import outside of conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
dkonieczek committed May 4, 2022
1 parent fbbb773 commit 340b1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/snap-preact/src/Snap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ export class Snap {
break;
}

if (!this.controllers[config.id]) {
const creationFunc: (config: SnapControllerConfigs, services: SnapControllerServices) => Controllers = (await importPromise).default;
const creationFunc: (config: SnapControllerConfigs, services: SnapControllerServices) => Controllers = (await importPromise).default;

if (!this.controllers[config.id]) {
this.controllers[config.id] = creationFunc(
{
url: deepmerge(this.config.url || {}, urlConfig || {}),
Expand Down

0 comments on commit 340b1f4

Please sign in to comment.