@campxdev/shared 1.11.11 → 1.11.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.11",
3
+ "version": "1.11.12",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -29,7 +29,8 @@ export default function ErrorModalProvider({ children }) {
29
29
  const fallbackMessage = props.fallBack ?? 'Something went wrong.'
30
30
  const errorMessage =
31
31
  typeof props.error?.response?.data?.message !== 'string'
32
- ? props.error?.response?.data?.message?.join('\n') ?? fallbackMessage
32
+ ? props.error?.response?.data?.message?.replace(/\n/g, '<br>') ??
33
+ fallbackMessage
33
34
  : props.error?.response?.data?.message
34
35
 
35
36
  setModal({