Skip to content

Commit

Permalink
chore: update toast message for better clarity and update format script
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyobrotoKar committed Jul 15, 2024
1 parent 4cf13c4 commit 9f5cce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/platform/src/app/auth/otp/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { useRouter } from 'next/navigation'
import { useEffect, useState } from 'react'
import { z } from 'zod'
import Cookies from 'js-cookie'
import { toast } from 'sonner'
import { LoadingSVG } from '@public/svg/shared'
import { KeyshadeBigSVG } from '@public/svg/auth'
import { toast } from 'sonner'
import { GeistSansFont } from '@/fonts'
import { Button } from '@/components/ui/button'
import {
Expand Down Expand Up @@ -63,7 +63,7 @@ export default function AuthOTPPage(): React.JSX.Element {
)
if (response.status === 401) {
toast.warning(
'The OTP you entered is not valid, Please enter the right OTP'
'The OTP you entered is either incorrect or has expired. Please enter the right OTP'
)
setIsLoading(false)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"db:validate": "pnpm run --filter=api db:validate",
"db:format": "pnpm run --filter=api db:format",
"db:reset": "pnpm run --filter=api db:reset",
"format": "prettier apps/**/*.{ts,tsx} packages/**/*.{ts,tsx} --write",
"format": "prettier apps/**/*.{ts,tsx} packages/**/*.ts --write",
"prepare": "husky",
"sourcemaps:api": "turbo run sourcemaps --filter=api",
"docker:run:web": "docker run --env-file .env --name ks-web --rm -p 3000:3000 ks-web",
Expand Down

0 comments on commit 9f5cce5

Please sign in to comment.