diff --git a/apps/web/server/routers/viewer.tsx b/apps/web/server/routers/viewer.tsx index dbf6a03c14..3d50410677 100644 --- a/apps/web/server/routers/viewer.tsx +++ b/apps/web/server/routers/viewer.tsx @@ -634,7 +634,7 @@ const loggedInViewerRouter = createProtectedRouter() if (username !== user.username) { data.username = username; const response = await checkUsername(username); - if (!response.available) { + if (!response.available || response.premium) { throw new TRPCError({ code: "BAD_REQUEST", message: response.message }); } }