diff --git a/public/index.html b/public/index.html index 640d600..371c9e3 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,7 @@ - + Cinny diff --git a/src/app/templates/auth/Auth.jsx b/src/app/templates/auth/Auth.jsx index 658b39f..eae602c 100644 --- a/src/app/templates/auth/Auth.jsx +++ b/src/app/templates/auth/Auth.jsx @@ -332,7 +332,7 @@ function Register({ registerInfo, loginFlow, baseUrl }) { actions.setSubmitting(false); }).catch((err) => { const msg = err.message || err.error; - if (['M_USER_IN_USE', 'M_INVALID_USERNAME', 'M_EXCLUSIVE'].indexOf(err.errcode) > 0) { + if (['M_USER_IN_USE', 'M_INVALID_USERNAME', 'M_EXCLUSIVE'].indexOf(err.errcode) > -1) { actions.setErrors({ username: err.errCode === 'M_USER_IN_USE' ? 'Username is already taken' : msg }); } else if (msg) actions.setErrors({ other: msg }); diff --git a/webpack.common.js b/webpack.common.js index d4d3513..0dd3e09 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -1,6 +1,5 @@ const HtmlWebpackPlugin = require('html-webpack-plugin'); const FaviconsWebpackPlugin = require('favicons-webpack-plugin'); -const webpack = require('webpack'); const CopyPlugin = require("copy-webpack-plugin"); module.exports = { @@ -66,9 +65,6 @@ module.exports = { } } }), - new webpack.DefinePlugin({ - 'process.env': JSON.stringify(process.env), - }), new CopyPlugin({ patterns: [ { from: 'olm.wasm' },