Skip to content

Commit

Permalink
fix: build error #5 ?
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoistP committed Nov 5, 2024
1 parent edebeac commit 5905089
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/assetsView/AssetsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const AssetsView: FC = () => {
const regVotingPower = useRegVotingPower()

const data = useMemo(() => {
const assets: (UserRealtoken | OtherRealtoken)[] = [
const assets: (UserRealtoken | OtherRealtoken | null)[] = [
...realtokens,
rwa,
reg,
Expand All @@ -40,7 +40,8 @@ export const AssetsView: FC = () => {
// remove null/undefined values
(asset) => asset != null && asset != undefined,
)
return assetsViewFilterFunction(assets.filter(assetSearchFunction))
const assetsT = assets as (UserRealtoken | OtherRealtoken)[]
return assetsViewFilterFunction(assetsT.filter(assetSearchFunction))
}, [
realtokens,
rwa,
Expand Down

0 comments on commit 5905089

Please sign in to comment.