mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 14:15:43 +01:00
lint
This commit is contained in:
parent
0fb9c372dd
commit
0c8d874e3a
2 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ export function getNoteMenu(props: {
|
||||||
props.translating.value = true;
|
props.translating.value = true;
|
||||||
const res = await os.api('notes/translate', {
|
const res = await os.api('notes/translate', {
|
||||||
noteId: appearNote.id,
|
noteId: appearNote.id,
|
||||||
targetLang: miLocalStorage.getItem('lang') || navigator.language,
|
targetLang: miLocalStorage.getItem('lang') ?? navigator.language,
|
||||||
});
|
});
|
||||||
props.translating.value = false;
|
props.translating.value = false;
|
||||||
props.translation.value = res;
|
props.translation.value = res;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
export default function(user: { name?: string | null, username: string }): string {
|
export default function(user: { name?: string | null, username: string }): string {
|
||||||
return user.name || user.username;
|
return user.name === '' ? user.username : user.name ?? user.username;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue