Skip to content
Snippets Groups Projects
Commit 4ea1a173 authored by syuilo's avatar syuilo
Browse files

refactor: use ??

parent b4be9d27
No related branches found
No related tags found
No related merge requests found
......@@ -556,7 +556,7 @@ function saveDraft() {
}
function deleteDraft() {
const draftData = JSON.parse(localStorage.getItem('drafts') || '{}');
const draftData = JSON.parse(localStorage.getItem('drafts') ?? '{}');
delete draftData[draftKey];
......@@ -571,7 +571,7 @@ async function post() {
renoteId: props.renote ? props.renote.id : quoteId ? quoteId : undefined,
channelId: props.channel ? props.channel.id : undefined,
poll: poll,
cw: useCw ? cw || '' : undefined,
cw: useCw ? cw ?? '' : undefined,
localOnly: localOnly,
visibility: visibility,
visibleUserIds: visibility === 'specified' ? visibleUsers.map(u => u.id) : undefined,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment