Skip to content

Commit

Permalink
fix: linted
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFridmansky committed Jan 31, 2024
1 parent 4b5103c commit 321b7ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "src/index.tsx",
"source": "src/index.tsx",
"scripts": {
"prepare": "husky install",
"build": "tsc -p tsconfig.json",
"release": "standard-version",
"test": "jest --coverage"
Expand Down
9 changes: 7 additions & 2 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ const StoryModal = forwardRef<StoryModalPublicMethods, StoryModalProps>( ( {
scrollTo( previousUserId.value );

} else {

return false;

}

} else {
Expand All @@ -228,6 +230,7 @@ const StoryModal = forwardRef<StoryModalPublicMethods, StoryModalProps>( ( {
}

return true;

};

const show = ( id: string ) => {
Expand Down Expand Up @@ -347,8 +350,10 @@ const StoryModal = forwardRef<StoryModalPublicMethods, StoryModalProps>( ( {

const success = toPreviousStory();

if (!success) {
startAnimation(true);
if ( !success ) {

startAnimation( true );

}

} else {
Expand Down

0 comments on commit 321b7ff

Please sign in to comment.