From 5d4a454e9d7a9cbdd6830caf76d8087a52a29c8a Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Wed, 17 May 2023 13:52:03 +0200 Subject: [PATCH] chore: add temp warning msg --- config/wallet-config.json | 1 + src/app/features/hiro-messages/in-app-messages.tsx | 2 ++ .../accounts/blockchain/bitcoin/native-segwit-account.hooks.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/config/wallet-config.json b/config/wallet-config.json index 75d09f55..96e6fa55 100644 --- a/config/wallet-config.json +++ b/config/wallet-config.json @@ -1,4 +1,5 @@ { + "$schema": "./wallet-config.schema.json", "messages": { "global": [] }, diff --git a/src/app/features/hiro-messages/in-app-messages.tsx b/src/app/features/hiro-messages/in-app-messages.tsx index ee69f8db..c66ed41a 100644 --- a/src/app/features/hiro-messages/in-app-messages.tsx +++ b/src/app/features/hiro-messages/in-app-messages.tsx @@ -18,6 +18,8 @@ export function InAppMessages(props: FlexProps) { const firstMessage = messages.filter(msg => !dismissedIds.includes(msg.id))[0]; + if (!firstMessage) return null; + if (firstMessage.chainTarget !== 'all' && firstMessage.chainTarget !== mode) { return null; } diff --git a/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts b/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts index f8d790f3..8e1a4779 100644 --- a/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts +++ b/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts @@ -36,6 +36,7 @@ function useNativeSegwitAccountKeychain() { }) ); } + export function useNativeSegwitCurrentAccountPrivateKeychain() { const keychain = useNativeSegwitAccountKeychain(); const currentAccountIndex = useCurrentAccountIndex();