File tree Expand file tree Collapse file tree
src/components/support-us Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 target: progress ,
1515 };
1616 } else {
17- currentProgressTween = new Tween <number >(progress );
17+ currentProgressTween = new Tween <number >(progress , { duration: 700 } );
1818 }
1919 let peopleCount = $state (currentPeopleCount );
2020 let currentProgress = $derived (Math .round (currentProgressTween .current ));
Original file line number Diff line number Diff line change 8181 delayed = false ;
8282 timeout = false ;
8383 submitting = false ;
84- document .querySelector (' #logo' )?.scrollIntoView ({ behavior: ' smooth' , block: ' center' });
85- showForm = false ;
86- setTimeout (() => {
87- progressStore .update ((v ) => ({
88- ... v ,
89- amount: v .amount + formData .contribution ,
90- people: v .people + 1 ,
91- }));
92- }, 1000 );
84+ if (submitResult !== ' success' ) {
85+ document .querySelector (' #logo' )?.scrollIntoView ({ behavior: ' smooth' , block: ' center' });
86+ showForm = false ;
87+ setTimeout (() => {
88+ progressStore .update ((v ) => ({
89+ ... v ,
90+ amount: v .amount + formData .contribution ,
91+ people: v .people + 1 ,
92+ }));
93+ }, 1000 );
94+ }
9395 }
9496 </script >
9597
You can’t perform that action at this time.
0 commit comments