1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

Fix issue when using an invalid user ID in url

This commit is contained in:
Andrew Kingston 2022-08-04 11:21:31 +01:00
parent 4945fbf9b1
commit f9fd96ed21

View file

@ -188,6 +188,9 @@
async function fetchUser(userId) {
let userPromise = users.get(userId)
user = await userPromise
if (!user?._id) {
$goto("./")
}
}
async function toggleFlags(detail) {