We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65572bc + 76b5d0f commit 1431136Copy full SHA for 1431136
βsrc/models/User.js
@@ -11,9 +11,9 @@ const userSchema = new Schema({
11
weight: { type: Number, required: true },
12
file: { type: String },
13
favoriteStyle: {
14
- style: { type: String },
15
- color: { type: String },
16
- fit: { type: String },
+ style: { type: String, default: '' },
+ color: { type: String, default: '' },
+ fit: { type: String, default: 'μ ν' },
17
},
18
sizeProfile: { type: Schema.Types.ObjectId, ref: 'SizeProfile' },
19
})
βstyle/src/components/User/Register.js
@@ -1,5 +1,4 @@
1
import authenticatedAxios from '../../api/authenticatedAxios'
2
-import axios from 'axios'
3
import { API_URL } from '../../api/apiConfig'
4
5
async function registerUser(userData) {
0 commit comments