File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed
microfrontends/SignDocuments/src/Component Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -612,6 +612,10 @@ function PdfRequestFiles() {
612
612
. then ( async ( result ) => {
613
613
const res = result . data ;
614
614
if ( res ) {
615
+ const currentDecline = {
616
+ currnt : "YouDeclined" ,
617
+ isDeclined : true
618
+ } ;
615
619
const params = {
616
620
event : "declined" ,
617
621
body : {
@@ -628,24 +632,23 @@ function PdfRequestFiles() {
628
632
declinedAt : new Date ( )
629
633
}
630
634
} ;
631
- const res = await axios . post (
632
- `${ localStorage . getItem ( "baseUrl" ) } functions/callwebhook` ,
633
- params ,
634
- {
635
- headers : {
636
- "Content-Type" : "application/json" ,
637
- "X-Parse-Application-Id" : localStorage . getItem ( "parseAppId" ) ,
638
- sessiontoken : localStorage . getItem ( "accesstoken" )
639
- }
640
- }
641
- ) ;
642
- console . log ( "res " , res . data ) ;
643
- const currentDecline = {
644
- currnt : "YouDeclined" ,
645
- isDeclined : true
646
- } ;
647
635
setIsDecline ( currentDecline ) ;
648
636
setIsUiLoading ( false ) ;
637
+ try {
638
+ await axios . post (
639
+ `${ localStorage . getItem ( "baseUrl" ) } functions/callwebhook` ,
640
+ params ,
641
+ {
642
+ headers : {
643
+ "Content-Type" : "application/json" ,
644
+ "X-Parse-Application-Id" : localStorage . getItem ( "parseAppId" ) ,
645
+ sessiontoken : localStorage . getItem ( "accesstoken" )
646
+ }
647
+ }
648
+ ) ;
649
+ } catch ( err ) {
650
+ console . log ( "Err " , err ) ;
651
+ }
649
652
}
650
653
} )
651
654
. catch ( ( err ) => {
You can’t perform that action at this time.
0 commit comments