Commit 682ddea2 authored by dev0tion's avatar dev0tion

Use message instead of description for create and recover errors

parent af4a6185
......@@ -93,7 +93,7 @@ export class CreateComponent {
response => {
if (response.status >= 200 && response.status < 400){
this.mnemonic = response.json();
alert("Your wallet has been created. Please write down your 12 word passphrase: \n" + this.mnemonic + "\nYou will be redirected to the decryption page.");
alert("Your wallet has been created.\n\nPlease write down your 12 word passphrase: \n" + this.mnemonic + "\n\nYou will be redirected to the decryption page.");
this.router.navigate(['']);
}
},
......@@ -106,7 +106,7 @@ export class CreateComponent {
console.log(error);
}
else {
alert(error.json().errors[0].description);
alert(error.json().errors[0].message);
}
}
}
......
......@@ -120,7 +120,7 @@ export class RecoverComponent implements OnInit {
console.log(error);
}
else {
alert(error.json().errors[0].description);
alert(error.json().errors[0].message);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment