Skip to content

Commit 5044ab5

Browse files
committed
fix typecheck
1 parent 6b40b78 commit 5044ab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/routes/settings+/profile.index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ async function profileUpdateAction({ userId, formData }: ProfileActionArgs) {
200200
)
201201
}
202202

203-
const data = submission.value
203+
const { username, name } = submission.value
204204

205205
await prisma.user.update({
206206
select: { username: true },
207207
where: { id: userId },
208208
data: {
209-
name: data.name,
210-
username: data.username,
209+
name: name,
210+
username: username,
211211
},
212212
})
213213

0 commit comments

Comments
 (0)