Skip to content

Commit

Permalink
fix key-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed May 29, 2024
1 parent 3d63463 commit 26f6de0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ export const UserInterface: FunctionComponent = () => {
tab.setSelectedIndex(1);
}, [tab]);

console.log(ui);

Check failure on line 23 in packages/snaps-simulator/src/features/handlers/components/UserInterface.tsx

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Lint (@metamask/snaps-simulator)

Unexpected console statement

if (!ui?.id) {
return null;
}

console.log(ui);
const { snapName, snapId, type, id } = ui;

switch (type) {
Expand Down
3 changes: 3 additions & 0 deletions packages/snaps-simulator/src/hooks/useSnapInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export const useSnapInterface = (snapId: string, interfaceId: string) => {
);

useEffect(() => {
if (!interfaceId) {
return;
}
const storedInterface = snapInterfaceController?.getInterface(
snapId as SnapId,
interfaceId,
Expand Down

0 comments on commit 26f6de0

Please sign in to comment.