@campxdev/shared 3.1.20 → 3.1.22

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": "3.1.20",
3
+ "version": "3.1.22",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -34,7 +34,9 @@ const workspaceApiMapping: Record<string, string> = {
34
34
  'team-owner-workspace': '/team-owner-api',
35
35
  'admissions-counsellor-workspace': '/admissions-counsellor-api',
36
36
  'admissions-officer-workspace': '/admissions-officer-api',
37
+ 'admissions-director-workspace': '/admissions-director-api',
37
38
  'research-coordinator-workspace': '/research-coordinator-api',
39
+ 'payment-portal': '/payment-portal-api',
38
40
  }
39
41
 
40
42
  export const formatParams = (params) => {
@@ -135,7 +137,7 @@ export const axiosErrorToast = (error: any, fallback?: string) => {
135
137
  const fallbackMessage = fallback ?? 'Something went wrong.'
136
138
  const errorMessage =
137
139
  typeof error?.response?.data?.message !== 'string'
138
- ? error?.response?.data?.message?.join('\n') ?? fallbackMessage
140
+ ? (error?.response?.data?.message?.join('\n') ?? fallbackMessage)
139
141
  : error?.response?.data?.message
140
142
 
141
143
  return toast.error(errorMessage)