Skip to content

Commit

Permalink
chore: removes periods from the inputs' error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
varortz committed May 24, 2024
1 parent 64aea83 commit 1e7506c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ const navlinks: NavLink[] = [

export default function NavBar() {
const profile = useProfile();
if (!profile) throw new Error('Profile must be defined.');
if (!profile) throw new Error('Profile must be defined');

const currentPath = usePathname();

const auth = useAuth();
if (!auth) throw new Error('Auth must be defined.');
if (!auth) throw new Error('Auth must be defined');

const authButtonView = useMemo(() => {
if (profile.profileReady && auth.userId)
Expand Down
2 changes: 1 addition & 1 deletion src/data/formSchemas.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import z from 'zod';
import { getCurrentDate } from '@/utils/helpers';

export const CHAR_LIMIT_MSG = 'Your text exceeds the 400-character limit.';
export const CHAR_LIMIT_MSG = 'Your text exceeds the 400-character limit';

const zodDropdownOption = {
label: z.string(),
Expand Down

0 comments on commit 1e7506c

Please sign in to comment.