Skip to content

Commit

Permalink
fix(sonar-cloud): fixes sonar cloud warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aialok committed Sep 21, 2024
1 parent fe2d884 commit c1f37c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/studio-next/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const Sidebar: FunctionComponent<SidebarProps> = () => {

const driverTourHandler = () => {
const getCurrentTourStep = localStorage.getItem('currentTourStep');
driverObj.drive(parseInt(getCurrentTourStep || '0', 10));
driverObj.drive(parseInt(getCurrentTourStep ?? '0', 10));
};

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const Sidebar: FunctionComponent<SidebarProps> = () => {

const driverTourHandler = () => {
const getCurrentTourStep = localStorage.getItem('currentTourStep');
driverObj.drive(parseInt(getCurrentTourStep || '0', 10));
driverObj.drive(parseInt(getCurrentTourStep ?? '0', 10));
};

return (
Expand Down

0 comments on commit c1f37c7

Please sign in to comment.