Skip to content

Commit

Permalink
ts-no check error reduced
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaganesh2k committed Mar 1, 2022
1 parent fe8bf30 commit 6c6c8f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/CubeD/VirtualRubiks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const VirtualRubiksC = (props: TProps) => {
// REFER THIS FOR THE MOVES HANDLER IMPLEMENTATION WILL BE DONE IN THE PACKAGE ITSELF https://drive.google.com/file/d/1oIhS2a-5cExQxtVM7U2Dl7XwmcAsL6R7/view?usp=sharing
/***********BELOW CODE IS EXECUTED ONLY IF USER ENTERS SOMETHING NEW IN SCRAMBLE FIELD***********/

if( typeof scramble !== "undefined" && typeof soln !== "undefined" && MoveNum.current == validateAlgs(val_soln.toString()).movesNum )
if( typeof val_scra !== "undefined" && typeof val_soln !== "undefined" && MoveNum.current == validateAlgs(val_soln.toString()).movesNum )
{
cube1.move_handler( val_scra.concat( val_soln ) , 0 , val_scra.length , MoveNum.current );
}
Expand Down Expand Up @@ -285,7 +285,7 @@ export const VirtualRubiksC = (props: TProps) => {

console.log("*787878787");
slider_no = MoveNum.current;
cube1.move_handler( scramble.concat( soln ) , 1 , scramble.length , MoveNum.current - 1 );
cube1.move_handler( val_scra.concat( val_soln ) , 1 , val_scra.length , MoveNum.current - 1 );
}
// if (playBtn.current ) {
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedLocals": false,
"noUnusedParameters": true,
"jsx": "react-jsx"
},
Expand Down

0 comments on commit 6c6c8f1

Please sign in to comment.