From 32536f0c327a1865db7dfe27fc2eb754928aa3c3 Mon Sep 17 00:00:00 2001 From: Nathanial Ziegler <76403303+nziegler87@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:55:48 -0500 Subject: [PATCH] removed typo and use of start --- src/utils/publicUser.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/publicUser.ts b/src/utils/publicUser.ts index 641b152..7d099ff 100644 --- a/src/utils/publicUser.ts +++ b/src/utils/publicUser.ts @@ -2,7 +2,6 @@ import { User } from "@prisma/client"; import { TRPCError } from "@trpc/server"; import { serverEnv } from "./env/server"; import { PublicUser, PoiData } from "./types"; -import { start } from "repl"; /** * Converts the given ``User`` to a ``PublicUser``, as to hide sensitive data. @@ -13,7 +12,7 @@ import { start } from "repl"; export const convertToPublic = (user: User): PublicUser => { const cleanAddress = (address: string) => { const startAddressAsList = user.startAddress.split(', '); - const cleanedAddress = startAddressAsList.length == 4 ? startAddressAsList[1] : start.length === 3 ? startAddressAsList[0] : "Exact Location Unavailable"; + const cleanedAddress = startAddressAsList.length == 4 ? startAddressAsList[1] : startAddressAsList.length === 3 ? startAddressAsList[0] : "Exact Location Unavailable"; return cleanedAddress; }