diff --git a/src/app/ui/modal-dialog-custom.js b/src/app/ui/modal-dialog-custom.js
index 16803b32ab..46eb2808c1 100644
--- a/src/app/ui/modal-dialog-custom.js
+++ b/src/app/ui/modal-dialog-custom.js
@@ -4,13 +4,13 @@ var css = require('./styles/modal-dialog-custom-styles')
module.exports = {
alert: function (text) {
- modal('', yo`
${text}
`, null, { label: null })
+ return modal('', yo`${text}
`, null, { label: null })
},
prompt: function (title, text, inputValue, ok, cancel, focus) {
- prompt(title, text, false, inputValue, ok, cancel, focus)
+ return prompt(title, text, false, inputValue, ok, cancel, focus)
},
promptPassphrase: function (title, text, inputValue, ok, cancel) {
- prompt(title, text, true, inputValue, ok, cancel)
+ return prompt(title, text, true, inputValue, ok, cancel)
},
promptPassphraseCreation: function (ok, cancel) {
var text = 'Please provide a Passphrase for the account creation'
@@ -20,7 +20,7 @@ module.exports = {
`
- modal(null, yo``,
+ return modal(null, yo``,
{
fn: () => {
if (typeof ok === 'function') {
@@ -42,7 +42,7 @@ module.exports = {
promptMulti: function ({ title, text, inputValue }, ok, cancel) {
if (!inputValue) inputValue = ''
var input = yo``
- modal(title, yo``,
+ return modal(title, yo``,
{
fn: () => { if (typeof ok === 'function') ok(document.getElementById('prompt_text').value) }
},
@@ -52,7 +52,7 @@ module.exports = {
)
},
confirm: function (title, text, ok, cancel) {
- modal(title, yo`${text}
`,
+ return modal(title, yo`${text}
`,
{
fn: () => { if (typeof ok === 'function') ok() }
},