mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
refactor: ♻️ Fix linter errors
This commit is contained in:
parent
8a984abfb2
commit
f9433e259b
30 changed files with 235 additions and 157 deletions
|
|
@ -50,7 +50,9 @@ const openLightbox = () => {
|
|||
};
|
||||
|
||||
const formatBytes = (bytes: number) => {
|
||||
if (bytes === 0) return "0 Bytes";
|
||||
if (bytes === 0) {
|
||||
return "0 Bytes";
|
||||
}
|
||||
const k = 1000;
|
||||
const dm = 2;
|
||||
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
||||
|
|
|
|||
|
|
@ -206,7 +206,9 @@ const numberFormat = (number = 0) =>
|
|||
}).format(number);
|
||||
|
||||
const likeFn = async () => {
|
||||
if (!outputtedNote.value) return;
|
||||
if (!outputtedNote.value) {
|
||||
return;
|
||||
}
|
||||
if (outputtedNote.value.favourited) {
|
||||
const output = await client.value.unfavouriteStatus(
|
||||
outputtedNote.value.id,
|
||||
|
|
@ -227,7 +229,9 @@ const likeFn = async () => {
|
|||
};
|
||||
|
||||
const reblogFn = async () => {
|
||||
if (!outputtedNote.value) return;
|
||||
if (!outputtedNote.value) {
|
||||
return;
|
||||
}
|
||||
if (outputtedNote.value?.reblogged) {
|
||||
const output = await client.value.unreblogStatus(
|
||||
outputtedNote.value.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue