Skip to content

Commit

Permalink
update(files): attempt to fix ci bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Dec 12, 2024
1 parent 1fb8246 commit fd34dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/messaging/ChatPreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
console.error("Error parsing JSON:", error, chat.last_message_preview)
return "Invalid message format"
}
const amountWei = parsedMessage.details.amount
const amountWei = parsedMessage.details?.amount
if (sendingUserDetails.key !== ownId.key) {
return `${sendingUserDetails.name} sent you ${amountWei}`
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/chat/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
}
const details = parsedMessage.details || {}
const amountWei = details.amount
const amountWei = details?.amount
if (sender !== "") {
return `${sender} sent you ${amountWei}`
Expand Down

0 comments on commit fd34dfd

Please sign in to comment.