fix: typos (#221)

This commit is contained in:
Sunset Mikoto
2024-05-10 21:23:59 +08:00
committed by GitHub
parent 58c3fdb5b4
commit cdc5c5202b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ const apiFetch = async (path, options = {}) => {
} }
if (response.status === 401 && path.startsWith("/admin")) { if (response.status === 401 && path.startsWith("/admin")) {
showAdminAuth.value = true; showAdminAuth.value = true;
throw new Error("Unauthorized, you admin password is wrong") throw new Error("Unauthorized, your admin password is wrong")
} }
if (response.status >= 300) { if (response.status >= 300) {
throw new Error(`${response.status} ${response.data}` || "error"); throw new Error(`${response.status} ${response.data}` || "error");
+1 -1
View File
@@ -149,7 +149,7 @@ api.post('/admin/address_sender', async (c) => {
} }
await sendAdminInternalMail( await sendAdminInternalMail(
c, address, "Account Send Access Updated", c, address, "Account Send Access Updated",
`You send access has been ${enabled ? "enabled" : "disabled"}, balance: ${balance}` `Your send access has been ${enabled ? "enabled" : "disabled"}, balance: ${balance}`
); );
return c.json({ return c.json({
success: success success: success