Compare commits

..

No commits in common. "f676cc1f19f7abd19bc1733d9e31296fd8fc5ceb" and "07c905c33ef364e3b5f51e874bbb6860f211a39f" have entirely different histories.

3 changed files with 9 additions and 9 deletions

View file

@ -41,7 +41,7 @@
"prepublishOnly": "napi prepublish -t npm", "prepublishOnly": "napi prepublish -t npm",
"universal": "napi universal", "universal": "napi universal",
"version": "napi version", "version": "napi version",
"format": "cargo fmt --all --", "format": "cargo fmt --all -- --check",
"lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all --" "lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all -- --check"
} }
} }

View file

@ -118,7 +118,7 @@ export const paramDef = {
preventAiLearning: { type: "boolean" }, preventAiLearning: { type: "boolean" },
isBot: { type: "boolean" }, isBot: { type: "boolean" },
isCat: { type: "boolean" }, isCat: { type: "boolean" },
speakAsCat: { type: "boolean", nullable: true }, speakAsCat: { type: "boolean" },
isIndexable: { type: "boolean" }, isIndexable: { type: "boolean" },
injectFeaturedNote: { type: "boolean" }, injectFeaturedNote: { type: "boolean" },
receiveAnnouncementEmail: { type: "boolean" }, receiveAnnouncementEmail: { type: "boolean" },

View file

@ -231,14 +231,14 @@ function saveFields() {
function save() { function save() {
os.apiWithDialog("i/update", { os.apiWithDialog("i/update", {
name: profile.name ?? undefined, name: profile.name || null,
description: profile.description ?? undefined, description: profile.description || null,
location: profile.location ?? undefined, location: profile.location || null,
birthday: profile.birthday ?? undefined, birthday: profile.birthday || null,
lang: profile.lang ?? undefined, lang: profile.lang || null,
isBot: !!profile.isBot, isBot: !!profile.isBot,
isCat: !!profile.isCat, isCat: !!profile.isCat,
speakAsCat: profile.isCat ? !!profile.speakAsCat : undefined, speakAsCat: !!profile.speakAsCat,
}); });
} }