Skip to content

Commit

Permalink
Improve error handling and typing in chat-bubble component (#2485)
Browse files Browse the repository at this point in the history
* Update chat-bubble.tsx

* Update version.sh
  • Loading branch information
KoZivod88074 authored Jan 18, 2025
1 parent b336db0 commit 7dd5cab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/src/components/ui/chat/chat-bubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ const ChatBubbleMessage = React.forwardRef<
ChatBubbleMessage.displayName = "ChatBubbleMessage";

// ChatBubbleTimestamp
interface ChatBubbleTimestampProps
extends React.HTMLAttributes<HTMLDivElement> {
interface ChatBubbleTimestampProps extends React.HTMLAttributes<HTMLDivElement> {
timestamp: string;
}

Expand Down
12 changes: 9 additions & 3 deletions client/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
LERNA_FILE="../lerna.json"

# Check if lerna.json exists
if [ ! -f "$LERNA_FILE" ]; then
echo "Error: $LERNA_FILE does not exist."
if [ ! -f "${LERNA_FILE}" ]; then
echo "Error: ${LERNA_FILE} does not exist."
exit 1
fi

# Check if we have write permissions to the destination directory
if [ ! -w "src/lib" ]; then
echo "Error: No write permission to src/lib directory."
exit 1
fi

Expand All @@ -22,4 +28,4 @@ fi
echo "{\"version\": \"$VERSION\"}" > src/lib/info.json

# Confirm success
echo "info.json created with version: $VERSION"
echo "info.json created with version: $VERSION"

0 comments on commit 7dd5cab

Please sign in to comment.