From a70a5f99ef284c6b12eddae50aa58db613886d01 Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Tue, 21 May 2024 12:23:28 -0300 Subject: [PATCH 1/2] fix: nc arguments might be null or an empty array, so we must handle it properly (#262) --- src/components/tx/TxData.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/tx/TxData.js b/src/components/tx/TxData.js index 2da1f44f..a923f28e 100644 --- a/src/components/tx/TxData.js +++ b/src/components/tx/TxData.js @@ -637,6 +637,10 @@ class TxData extends React.Component { } const renderNCArguments = (args) => { + if (!Array.isArray(args) || args.length === 0) { + return ' - '; + } + return args.map((arg) => (
{renderArgValue(arg)} From f83f9e619bf0245c7d72d01ce96cb0d34c2c78e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carneiro?= Date: Tue, 21 May 2024 13:44:23 -0300 Subject: [PATCH 2/2] chore: bump v0.18.1 (#263) * chore: bump to 0.18.1 --- package-lock.json | 4 ++-- package.json | 2 +- src/constants.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1669daa8..620797ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hathor-admin", - "version": "0.18.0", + "version": "0.18.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hathor-admin", - "version": "0.18.0", + "version": "0.18.1", "dependencies": { "@hathor/wallet-lib": "1.4.0", "@unleash/proxy-client-react": "1.0.4", diff --git a/package.json b/package.json index cff22585..1712b54f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hathor-admin", - "version": "0.18.0", + "version": "0.18.1", "private": true, "dependencies": { "@hathor/wallet-lib": "1.4.0", diff --git a/src/constants.js b/src/constants.js index 9ac25cba..32c7752c 100644 --- a/src/constants.js +++ b/src/constants.js @@ -52,7 +52,7 @@ export const TESTNET_GENESIS_TX = [ export const DECIMAL_PLACES = 2; -export const VERSION = '0.18.0'; +export const VERSION = '0.18.1'; export const MIN_API_VERSION = '0.33.0';