Skip to content

Commit

Permalink
Fix the web tools build
Browse files Browse the repository at this point in the history
  • Loading branch information
Theophile Sandoz authored and Theophile Sandoz committed Aug 5, 2024
1 parent 166937a commit 07fe865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web-tools/trustchain/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useContext } from "react";
import { withDevice } from "@ledgerhq/live-common/hw/deviceAccess";
import { TrustchainSDK } from "@ledgerhq/trustchain/types";
import { getSdk } from "@ledgerhq/trustchain/index";
import { getEnv } from "@ledgerhq/live-env";
Expand All @@ -10,7 +11,7 @@ export const defaultContext = {
};

export const TrustchainSDKContext = React.createContext<TrustchainSDK>(
getSdk(false, defaultContext),
getSdk(false, defaultContext, withDevice),
);

export const useTrustchainSDK = () => useContext(TrustchainSDKContext);

0 comments on commit 07fe865

Please sign in to comment.