File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
apps/builder/src/features/publish/components/embeds/modals/WhatsAppModal Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,10 @@ export const WhatsAppCredentialsModal = ({
158
158
setIsVerifying ( false )
159
159
showToast ( {
160
160
description : 'Could not get system info' ,
161
+ details :
162
+ err instanceof Error
163
+ ? { content : err . message , lang : 'json' }
164
+ : undefined ,
161
165
} )
162
166
return false
163
167
}
@@ -204,7 +208,10 @@ export const WhatsAppCredentialsModal = ({
204
208
setIsVerifying ( false )
205
209
showToast ( {
206
210
description : 'Could not get phone number info' ,
207
- details : { content : JSON . stringify ( err ) , lang : 'json' } ,
211
+ details :
212
+ err instanceof Error
213
+ ? { content : err . message , lang : 'json' }
214
+ : undefined ,
208
215
} )
209
216
return false
210
217
}
You can’t perform that action at this time.
0 commit comments