Skip to content

Commit f76cdda

Browse files
committed
wallet
1 parent 285d5d7 commit f76cdda

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitte-ai/react",
3-
"version": "0.6.6-beta-prerelease.38",
3+
"version": "0.6.6-beta-prerelease.39",
44
"description": "React app tools for Bitte Wallet",
55
"scripts": {
66
"watch": "tsc && tsc --watch & jest --watch --coverage",

src/BitteWalletContext.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,7 @@ export const BitteWalletContextProvider: React.FC<ContextProviderType> = ({
154154

155155
const { selector, modal } = components || {};
156156

157-
// Ensure selector is always defined
158-
if (!selector) {
159-
throw new Error("Selector must be initialized before use.");
160-
}
157+
161158

162159
const connect = async (): Promise<void> => {
163160
setIsWaitingForConnection(true);
@@ -183,7 +180,7 @@ export const BitteWalletContextProvider: React.FC<ContextProviderType> = ({
183180

184181
const contextVal = useMemo<BitteWalletContext>(
185182
() => ({
186-
selector: selector,
183+
selector: selector as WalletSelector,
187184
modal: modal,
188185
accounts: accounts,
189186
activeAccountId:

0 commit comments

Comments
 (0)