Skip to content

Commit

Permalink
Fix Babel Boxes filtering (#120)
Browse files Browse the repository at this point in the history
* fix non-NFT filtering

* version bump to v0.9.2
  • Loading branch information
capt-nemo429 committed Dec 31, 2023
1 parent 4b47d6d commit af94c3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nautilus-wallet",
"version": "0.9.1",
"version": "0.9.2",
"private": true,
"scripts": {
"dev:mainnet": "vue-cli-service serve",
Expand Down
10 changes: 9 additions & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,15 @@ export default createStore({
},
[GETTERS.NON_NFT_BALANCE](state, getters) {
const balance: StateAsset[] = getters[GETTERS.BALANCE];
return balance.filter((b) => !b.info || b.info.type === undefined);
return balance.filter(
(b) =>
!b.info ||
!b.info.type ||
(b.info.type !== AssetSubtype.AudioArtwork &&
b.info.type !== AssetSubtype.VideoArtwork &&
b.info.type !== AssetSubtype.PictureArtwork &&
b.info.type !== AssetSubtype.ThresholdSignature)
);
}
},
mutations: {
Expand Down

0 comments on commit af94c3b

Please sign in to comment.