mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 18:59:59 +01:00
Update dependencies and improve stateWord logic in Activity component
- Updated '@iconify-json/lucide' dependency to version 1.2.35 in package.json and pnpm-lock.yaml for compatibility. - Enhanced stateWord logic in Activity component to handle cases where the state string may be empty, ensuring it defaults to 'secret' when necessary.
This commit is contained in:
@@ -50,7 +50,8 @@ const getActivity = computed(() => {
|
||||
.replace('Workspace:', '')
|
||||
.trim()
|
||||
: ''
|
||||
const stateWord = state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret')
|
||||
|
||||
const stateWord = state && state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret')
|
||||
const ago = useTimeAgo(timestamps.start, {
|
||||
messages: activityMessages[locale.value] as UseTimeAgoMessages,
|
||||
}).value
|
||||
|
||||
Reference in New Issue
Block a user