@campxdev/shared 3.1.20 → 3.1.21
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 +1 -1
- package/src/config/axios.ts +2 -1
package/package.json
CHANGED
package/src/config/axios.ts
CHANGED
|
@@ -35,6 +35,7 @@ const workspaceApiMapping: Record<string, string> = {
|
|
|
35
35
|
'admissions-counsellor-workspace': '/admissions-counsellor-api',
|
|
36
36
|
'admissions-officer-workspace': '/admissions-officer-api',
|
|
37
37
|
'research-coordinator-workspace': '/research-coordinator-api',
|
|
38
|
+
'payment-portal': '/payment-portal-api',
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export const formatParams = (params) => {
|
|
@@ -135,7 +136,7 @@ export const axiosErrorToast = (error: any, fallback?: string) => {
|
|
|
135
136
|
const fallbackMessage = fallback ?? 'Something went wrong.'
|
|
136
137
|
const errorMessage =
|
|
137
138
|
typeof error?.response?.data?.message !== 'string'
|
|
138
|
-
? error?.response?.data?.message?.join('\n') ?? fallbackMessage
|
|
139
|
+
? (error?.response?.data?.message?.join('\n') ?? fallbackMessage)
|
|
139
140
|
: error?.response?.data?.message
|
|
140
141
|
|
|
141
142
|
return toast.error(errorMessage)
|