fix: [CAL-3374] Says Number is not Verified, but it is Verified (#14531)
* fix: [CAL-3374] Says Number is not Verified, but it is Verified * clearing error only when verified * type-checks fixed * chore: improvement --------- Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
88 files changed
+109
-126
No files matched your search
@@ -32,7 +32,7 @@ const FETCH_LIMIT = 25;
|
||||
function UsersTableBare() {
|
||||
const { t } = useLocale();
|
||||
const tableContainerRef = useRef<HTMLDivElement>(null);
|
||||
const utils = trpc.useContext();
|
||||
const utils = trpc.useUtils();
|
||||
const [searchTerm, setSearchTerm] = useState<string>("");
|
||||
const [showImpersonateModal, setShowImpersonateModal] = useState(false);
|
||||
const [selectedUser, setSelectedUser] = useState<string | null>(null);
|
||||
|
||||
@@ -14,7 +14,7 @@ import { userBodySchema } from "../schemas/userBodySchema";
|
||||
const UsersAddView = () => {
|
||||
const pathname = usePathname();
|
||||
const router = useRouter();
|
||||
const utils = trpc.useContext();
|
||||
const utils = trpc.useUtils();
|
||||
const mutation = trpc.viewer.users.add.useMutation({
|
||||
onSuccess: async () => {
|
||||
showToast("User added successfully", "success");
|
||||
|
||||
@@ -30,7 +30,7 @@ const UsersEditView = ({ userId }: { userId: number }) => {
|
||||
const router = useRouter();
|
||||
const [data] = trpc.viewer.users.get.useSuspenseQuery({ userId });
|
||||
const { user } = data;
|
||||
const utils = trpc.useContext();
|
||||
const utils = trpc.useUtils();
|
||||
const mutation = trpc.viewer.users.update.useMutation({
|
||||
onSuccess: async () => {
|
||||
Promise.all([utils.viewer.users.list.invalidate(), utils.viewer.users.get.invalidate()]);
|
||||
|
||||
Reference in new issue
Block a user