Skip to content

Commit

Permalink
fix building issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnaveira committed Aug 8, 2024
1 parent 0f9f711 commit 98c4a1c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/routes/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ function Home() {
setBadges(
// Best guess :/
resp.substates
.filter(s => !!s.substate_id.NonFungible)
.map(s => s.substate_id.NonFungible.resource_address)
.map(s => s.substate_id)
);
})
.catch(e => {
Expand All @@ -98,8 +97,7 @@ function Home() {
if (resp?.substates?.length) {
setComponents(
resp.substates
.filter(s => !!s.substate_id.Component)
.map(s => s.substate_id.Component)
.map(s => s.substate_id)
);
} else {
setComponents([]);
Expand Down
3 changes: 1 addition & 2 deletions src/routes/substates/Substates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ function Substates() {
.then(resp => {
setComponents(
resp.substates
.filter(s => !!s.substate_id.Component)
.map(s => s.substate_id.Component)
.map(s => s.substate_id)
);
setIsLoading(false);
})
Expand Down
4 changes: 3 additions & 1 deletion src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export async function listSubstates<T extends TariProvider>(
}
const substates = await provider.listSubstates(
template,
substateType
substateType,
null,
null
);
return substates;
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"strictPropertyInitialization": false,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"isolatedModules": false,
"noEmit": true,
"jsx": "react-jsx",

Expand Down

0 comments on commit 98c4a1c

Please sign in to comment.