app-tutor-ai-consumer 1.31.0 → 1.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.31.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.31.0...v1.31.1) (2025-10-01)
2
+
3
+ ### Bug Fixes
4
+
5
+ - split user name error ([1bfc86b](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/1bfc86bff58693b198ee7e093fe0ddb91b2923ec))
6
+
1
7
  # [1.31.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.30.0...v1.31.0) (2025-09-22)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tutor-ai-consumer",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dev": "rspack serve --env=development --config config/rspack/rspack.config.js",
@@ -28,6 +28,8 @@ function WidgetStarterPage() {
28
28
  const limit = useMessagesMaxCount()
29
29
  const queryClient = useQueryClient()
30
30
  const name = settings?.tutorName ?? t('general.name')
31
+ const authorName =
32
+ typeof settings?.user?.name === 'string' ? settings?.user?.name?.split(' ')?.[0] || '' : ''
31
33
  const isDarkTheme = settings?.config?.theme === 'dark'
32
34
  const isSparkieReady = useInitSparkie()
33
35
  const isMobile = useMediaQuery({ maxSize: 'md' })
@@ -148,11 +150,7 @@ function WidgetStarterPage() {
148
150
  />
149
151
 
150
152
  <div className='my-auto'>
151
- <GreetingsCard
152
- author={settings?.user?.name?.split(' ')?.[0]}
153
- tutorName={name}
154
- isDarkTheme={isDarkTheme}
155
- />
153
+ <GreetingsCard author={authorName} tutorName={name} isDarkTheme={isDarkTheme} />
156
154
  </div>
157
155
  </div>
158
156
  {tutorQuickActionsFF?.enabled ? (