Skip to content

Commit a2017fb

Browse files
committed
Add missing ipc subscription in ui
1 parent 79aa105 commit a2017fb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/accounts.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { createRoot } from 'react-dom/client';
99
import { Provider } from 'react-redux';
1010
import invariant from 'tiny-invariant';
1111
import Browser from 'webextension-polyfill';
12-
import { onEnd, pipe } from 'wonka';
12+
import { onEnd, pipe, publish } from 'wonka';
1313

1414
import { createAccountsStore } from './accounts/store/create';
1515
import { createUpdateState } from './accounts/updateState';
@@ -103,7 +103,8 @@ Promise.all([
103103
port = null;
104104
Background.init(connect());
105105
});
106-
})
106+
}),
107+
publish
107108
);
108109

109110
return createIpcCallProxy<keyof BackgroundUiApi, BackgroundUiApi>(

src/popup.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { createRoot } from 'react-dom/client';
99
import { Provider } from 'react-redux';
1010
import invariant from 'tiny-invariant';
1111
import Browser from 'webextension-polyfill';
12-
import { onEnd, pipe } from 'wonka';
12+
import { onEnd, pipe, publish } from 'wonka';
1313

1414
import { SignProvider } from './_core/signContext';
1515
import { UsdPricesProvider } from './_core/usdPrices';
@@ -115,7 +115,8 @@ Promise.all([
115115
port = null;
116116
Background.init(connect());
117117
});
118-
})
118+
}),
119+
publish
119120
);
120121

121122
return createIpcCallProxy<keyof BackgroundUiApi, BackgroundUiApi>(

0 commit comments

Comments
 (0)