aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth
diff options
context:
space:
mode:
authorLibravatar haraldox <hnaumann+github@gmail.com>2018-01-19 16:36:26 +0100
committerLibravatar haraldox <hnaumann+github@gmail.com>2018-01-19 16:36:26 +0100
commit7b03fa16c50f2250bcc16284016cb05f501ec51a (patch)
tree0ef0fe0485dae1454ce3915812f1a59d7c6bdc47 /src/components/auth
parentMerge pull request #587 from meetfranz/feature/remove-miner (diff)
downloadferdium-app-7b03fa16c50f2250bcc16284016cb05f501ec51a.tar.gz
ferdium-app-7b03fa16c50f2250bcc16284016cb05f501ec51a.tar.zst
ferdium-app-7b03fa16c50f2250bcc16284016cb05f501ec51a.zip
fix invite screen [object Object] value
mobx-react-form expects nested `fields` property in array
Diffstat (limited to 'src/components/auth')
-rw-r--r--src/components/auth/Invite.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/components/auth/Invite.js b/src/components/auth/Invite.js
index c1d815dcd..dface4fe1 100644
--- a/src/components/auth/Invite.js
+++ b/src/components/auth/Invite.js
@@ -45,17 +45,17 @@ export default class Invite extends Component {
45 form = new Form({ 45 form = new Form({
46 fields: { 46 fields: {
47 invite: [...Array(3).fill({ 47 invite: [...Array(3).fill({
48 name: { 48 fields: {
49 label: this.context.intl.formatMessage(messages.nameLabel), 49 name: {
50 // value: '', 50 label: this.context.intl.formatMessage(messages.nameLabel),
51 placeholder: this.context.intl.formatMessage(messages.nameLabel), 51 placeholder: this.context.intl.formatMessage(messages.nameLabel),
52 }, 52 },
53 email: { 53 email: {
54 label: this.context.intl.formatMessage(messages.emailLabel), 54 label: this.context.intl.formatMessage(messages.emailLabel),
55 // value: '', 55 placeholder: this.context.intl.formatMessage(messages.emailLabel),
56 validate: [email], 56 validators: [email],
57 placeholder: this.context.intl.formatMessage(messages.emailLabel), 57 }
58 }, 58 }
59 })], 59 })],
60 }, 60 },
61 }, this.context.intl); 61 }, this.context.intl);