throw actual error because of eslint
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
1120b710a6
commit
613be49e5b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user