throw actual error because of eslint

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-07-23 15:41:18 +03:00
parent 1120b710a6
commit 613be49e5b
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -91,7 +91,7 @@ export const AddressBook = () => {
try {
const [, prefix] = ss58Decode(address)
if (prefix !== 1995 && prefix !== 1996) {
throw ""
throw new Error("bad prefix")
}
} catch (e) {
setError("Incorrect Ghost or Casper address provided")