Skip to content

Commit

Permalink
removed getDayOrdinal function in utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamsheye committed Oct 23, 2024
1 parent 1dc8bcc commit 6483577
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import toast from "react-hot-toast";

const getDayOrdinal = (day: number): string => {
if (day > 3 && day < 21) return "th";
switch (day % 10) {
case 1:
return "st";
case 2:
return "nd";
case 3:
return "rd";
default:
return "th";
}
};

export const toastError = (err: unknown) => {
// @ts-ignore
const message = err.response?.data?.message || "Login Failed";
Expand Down

0 comments on commit 6483577

Please sign in to comment.