@@ -17,6 +17,7 @@ import {
1717 CurrentNetworkID as CurrentNetworkIDSubject ,
1818 ConnectionStatus as ConnectionStatusSubject ,
1919 SyncedBlockNumber as SyncedBlockNumberSubject ,
20+ AppUpdater as AppUpdaterSubject ,
2021 Command as CommandSubject ,
2122} from 'services/subjects'
2223import { ckbCore , getBlockchainInfo , getTipHeader } from 'services/chain'
@@ -183,6 +184,13 @@ export const useSubscription = ({
183184 } )
184185 } )
185186
187+ const appUpdaterSubscription = AppUpdaterSubject . subscribe ( appUpdaterInfo => {
188+ dispatch ( {
189+ type : NeuronWalletActions . UpdateAppUpdaterStatus ,
190+ payload : appUpdaterInfo ,
191+ } )
192+ } )
193+
186194 const commandSubscription = CommandSubject . subscribe ( ( { winID, type, payload } : Subject . CommandMetaInfo ) => {
187195 if ( winID && getWinID ( ) === winID ) {
188196 switch ( type ) {
@@ -223,6 +231,7 @@ export const useSubscription = ({
223231 currentNetworkIDSubscription . unsubscribe ( )
224232 connectionStatusSubscription . unsubscribe ( )
225233 syncedBlockNumberSubscription . unsubscribe ( )
234+ appUpdaterSubscription . unsubscribe ( )
226235 commandSubscription . unsubscribe ( )
227236 }
228237 } , [ walletID , pageNo , pageSize , keywords , isAllowedToFetchList , history , dispatch ] )
0 commit comments