Skip to content

Commit

Permalink
Merge pull request #28 from tsaxking/chore-update-scripts-to-769bb992…
Browse files Browse the repository at this point in the history
…3f9ce6b605a9a9209ea81fc901cd52e7

Chore update scripts to 769bb99
  • Loading branch information
tsaxking authored Jan 27, 2024
2 parents 227f099 + 4ca174d commit 81190cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/utilities/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ export const notify = (data: StatusJson): Promise<void> => {
fromSnakeCase(fromCamelCase(data.title), '-'),
);

let message = `${status}: ${
const message = `${status}: ${
capitalize(
fromSnakeCase(fromCamelCase(data.$status), '-'),
)
}`;

if (data.data) {
for (const [key, value] of Object.entries(data.data)) {
message += `\n${key}: ${value}`;
}
}
// if (data.data) {
// for (const [key, value] of Object.entries(data.data)) {
// message += `\n${key}: ${value}`;
// }
// }

const t = new Toast({
target: document.createElement('div'),
Expand Down

0 comments on commit 81190cc

Please sign in to comment.