Skip to content

Commit

Permalink
removed typo and use of start
Browse files Browse the repository at this point in the history
  • Loading branch information
nziegler87 committed Jan 16, 2025
1 parent 99c8002 commit 32536f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/publicUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;

}
Expand Down

0 comments on commit 32536f0

Please sign in to comment.