mirror of
https://github.com/Fluffy-Bean/website.git
synced 2024-12-26 17:36:12 +00:00
style: format code with Prettier
This commit fixes the style issues introduced in b22adbd
according to the output
from Prettier.
Details: None
This commit is contained in:
parent
b22adbda96
commit
dfc25ac503
10
src/utils.ts
10
src/utils.ts
|
@ -32,14 +32,14 @@ export function getMonth(date: Date): string {
|
|||
}
|
||||
|
||||
export function getDaySuffix(date: Date): string {
|
||||
let suffix = 'th';
|
||||
let suffix = "th";
|
||||
if (date.getDate() % 10 === 1 && date.getDate() !== 11) {
|
||||
suffix = 'st';
|
||||
suffix = "st";
|
||||
} else if (date.getDate() % 10 === 2 && date.getDate() !== 12) {
|
||||
suffix = 'nd';
|
||||
suffix = "nd";
|
||||
} else if (date.getDate() % 10 === 3 && date.getDate() !== 13) {
|
||||
suffix = 'rd';
|
||||
suffix = "rd";
|
||||
}
|
||||
|
||||
return suffix;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue