Skip to content

Commit

Permalink
Add missing ipc subscription in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
faergeek committed Apr 6, 2023
1 parent 79aa105 commit a2017fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import invariant from 'tiny-invariant';
import Browser from 'webextension-polyfill';
import { onEnd, pipe } from 'wonka';
import { onEnd, pipe, publish } from 'wonka';

import { createAccountsStore } from './accounts/store/create';
import { createUpdateState } from './accounts/updateState';
Expand Down Expand Up @@ -103,7 +103,8 @@ Promise.all([
port = null;
Background.init(connect());
});
})
}),
publish
);

return createIpcCallProxy<keyof BackgroundUiApi, BackgroundUiApi>(
Expand Down
5 changes: 3 additions & 2 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import invariant from 'tiny-invariant';
import Browser from 'webextension-polyfill';
import { onEnd, pipe } from 'wonka';
import { onEnd, pipe, publish } from 'wonka';

import { SignProvider } from './_core/signContext';
import { UsdPricesProvider } from './_core/usdPrices';
Expand Down Expand Up @@ -115,7 +115,8 @@ Promise.all([
port = null;
Background.init(connect());
});
})
}),
publish
);

return createIpcCallProxy<keyof BackgroundUiApi, BackgroundUiApi>(
Expand Down

0 comments on commit a2017fb

Please sign in to comment.