diff --git a/package.json b/package.json index e11ca22..582278d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghost-wallet", - "version": "0.1.4", + "version": "0.1.5", "description": "Browser extension to manage ghost blockchain light clients.", "main": "dist/src/index.js", "author": "Uncle f4ts0 ", diff --git a/src/containers/WalletPopup/pages/SignRequest.tsx b/src/containers/WalletPopup/pages/SignRequest.tsx index ad3cbf0..67eca21 100644 --- a/src/containers/WalletPopup/pages/SignRequest.tsx +++ b/src/containers/WalletPopup/pages/SignRequest.tsx @@ -31,9 +31,22 @@ export const SignRequest = () => { window.close() return null } + if (isLoading) { + return ( + +

Loading Sign Request #{signRequestId}

+
+ ) + } const request = signRequests?.[signRequestId] - if (isLoading || !request) { - return null + if (error || !request) { + return ( + +

Could not parse the sign request #{signRequestId}

+
+ Error: {error?.message} +
+ ) } return (