Skip to content

Commit a891222

Browse files
authored
chore: init notifications (#5591)
1 parent 105d2f5 commit a891222

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,6 @@
272272
"vitest": "3.2.4"
273273
},
274274
"sideEffects": [
275-
"*.css"
275+
"*.css", "*.ts"
276276
]
277277
}

src/renderer/features/multisig-operations/model/feature.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { accountUtils } from '@/entities/wallet';
1212
import { multisigService } from '@/features/multisig-wallet';
1313

1414
import { deepLinkModel } from './deep-link';
15-
import './notifications';
15+
import { $notificationsReady } from './notifications';
1616

1717
const $trigger = createStore<string>('');
1818
const $debouncedApis = createStore<Record<ChainId, ApiPromise>>({});
@@ -41,6 +41,7 @@ const $input = combine(
4141
apis: $debouncedApis,
4242
chains: networkModel.$chains,
4343
accounts: accounts.$list,
44+
notificationsReady: $notificationsReady, // initialize notifications binding
4445
},
4546
({ apis, chains, accounts }) => {
4647
const multisigs = accounts.filter(accountUtils.isAnyMultisigAccount);

src/renderer/features/multisig-operations/model/notifications.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sample } from 'effector';
1+
import { createStore, sample } from 'effector';
22
import { t } from 'i18next';
33
import { spread } from 'patronum';
44

@@ -293,3 +293,5 @@ sample({
293293
removed: notificationModel.events.notificationsRemoved,
294294
}),
295295
});
296+
297+
export const $notificationsReady = createStore(false).on(operationChanges, () => true);

0 commit comments

Comments
 (0)