Skip to content

Commit

Permalink
updates wc ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack-Xb committed Feb 20, 2024
1 parent 04d110e commit b07491d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Binary file modified backend/icons/icon.icns
Binary file not shown.
15 changes: 8 additions & 7 deletions frontend/src/services/nfts/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ export async function get_nfts() {
//the metadata is either an image or an INft object
if (metadata.image === undefined) {
return {
uri,
owner: '0x0',
creator: '0x0',
contract: '0x0',
token_id: 0,
created_at: new Date().toISOString(),
image: metadata
name: '',
image: metadata,
attributes: [],
mintNumber: 0,
collectionLink: '',
collectionName: '',
collectionDescription: '',
sourceLink: ''
};
} else {
return metadata as INft;
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/services/util/updater.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { check } from "@tauri-apps/plugin-updater";
import { relaunch } from "@tauri-apps/plugin-process";


const update = await check();

if (update?.available) {
await update.downloadAndInstall();
await relaunch();
Expand Down

0 comments on commit b07491d

Please sign in to comment.