@visualizevalue/mint-app-base 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {
@@ -110,6 +110,11 @@ const txFlow = ref()
110
110
  const txFlowKey = ref(0)
111
111
  const minting = ref(false)
112
112
  const mint = async () => {
113
+ if (! image.value) {
114
+ alert(`Empty image data. Please try again.`)
115
+ return
116
+ }
117
+
113
118
  const artifact = toByteArray(image.value)
114
119
  const artifactChunks = chunkArray(artifact, 4)
115
120
  const multiTransactionPrepare = artifactChunks.length > 1