Skip to content

Commit 953ffe9

Browse files
committed
more correct comment explanation
1 parent 151d6e0 commit 953ffe9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/api/requests.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ export const useAllSOWs = (id, requestIdentifier, accessToken) => {
5656
}
5757
}
5858

59-
// The name of this function is getAllPOs vs. useAllPOs.
60-
// Since it is async, it is technically not a custom hook and according to linter should not start with use.
61-
export const getAllPOs = async (quotedWareId, uuid, requestIdentifier, accessToken) => {
59+
// The name of this function is getAllPOs vs. useAllPOs. Since it is not a hook, it should not start with "use".
6260
try {
6361
// TODO(summer-cook): eventually we can use the useSWRList hook here instead of mapping & calling the fetcher.
6462
// This hook is actively being contributed to the swr repo, but the semantics of the work are still being debated.

0 commit comments

Comments
 (0)