Skip to content

Commit

Permalink
feature/watchlist: putting back the navigate function in live search …
Browse files Browse the repository at this point in the history
…results
  • Loading branch information
carrawao committed May 14, 2022
1 parent 0d20bf2 commit 2371c6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Frontend/src/components/common/SearchResultsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SearchResultsTable = props => {
return isAssetInWatchList;
}

let navigate = useNavigate();
const navigate = useNavigate();
const routeChange = path => {
navigate(path);
}
Expand Down Expand Up @@ -126,7 +126,8 @@ const SearchResultsTable = props => {
<Grid item className='d-flex flex-row justify-content-end'>
<ListItemButton
className='p-0 ms-3 flex-grow-0 justify-content-end'
onClick={() => {routeChange(`../activities/addActivity/${element.assetType}/${element.symbol}/${element.name}`)}}
onClick={() => {
routeChange(`../activities/addActivity/${element.assetType}/${element.symbol}/${element.name}`)}}
>
<Tooltip
title='Add Activity'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const AllocationGraph = props => {
})();

const valueData = (() => {
let valueData = []
let valueData = [];
assets.forEach(element => {
valueData.push(parseFloat(element.value).toFixed(2));
});
Expand Down

0 comments on commit 2371c6a

Please sign in to comment.