Skip to content

Commit

Permalink
fix wp mint color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed May 3, 2024
1 parent 4dbfdfe commit 485d316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@
"workbench.layoutControl.enabled": true,
"workbench.statusBar.visible": true,
"favorites.sortOrder": "DESC",
"workbench.preferredLightColorTheme": "Kimbie Dark",
"workbench.preferredLightColorTheme": "Bluloco Light Italic",
"liveServer.settings.root": "/web/dapp/"
}
3 changes: 2 additions & 1 deletion svelte/src/components/Main/MintButtonWp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
$: nft && handleNft();
const handleNft = (): void => {
if (!nft) return;
nid = nft.nid;
// Dispacth "token" event to be catched
// in wordpress/plugins/kredeum-nfts/admin/ajax/ajax.js
const detail: { nid?: string; pid?: string } = {};
if (nft && (nft as NftType).nid) detail.nid = (nft as NftType).nid;
if (nid) detail.nid = nid;
if (pid) detail.pid = pid;
const event = new CustomEvent("token", { detail, bubbles: true });
Expand Down

0 comments on commit 485d316

Please sign in to comment.