Skip to content

Commit

Permalink
refactor: changed function declaration to a variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Oct 19, 2023
1 parent acaa4f5 commit c241356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ build/
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
Expand Down
2 changes: 1 addition & 1 deletion src/components/App/SideBar/Latest/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const _View = ({ isSearchResult }: Props) => {
const [nodeCount, setNodeCount] = useUserStore((s) => [s.nodeCount, s.setNodeCount])
const [fetchData] = [useDataStore((s) => s.fetchData)]

async function getLatest() {
const getLatest = async () => {
if (nodeCount < 1) {
return
}
Expand Down

0 comments on commit c241356

Please sign in to comment.