Skip to content

Commit

Permalink
Refactor function name from getUsersWalletorhandleKey to getUsersWall…
Browse files Browse the repository at this point in the history
…etorHandleKey for better readability
  • Loading branch information
0xemc committed Nov 27, 2023
1 parent c7dfcab commit c5aed32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions carbonmark/components/pages/Users/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { t } from "@lingui/macro";
import { Layout } from "components/Layout";
import { PageHead } from "components/PageHead";
import { useConnectedUser } from "hooks/useConnectedUser";
import { getUsersWalletorhandleKey } from "lib/api/swr.keys";
import { getUsersWalletorHandleKey } from "lib/api/swr.keys";
import { fetcher } from "lib/fetcher";
import { User } from "lib/types/carbonmark.types";
import { NextPage } from "next";
Expand Down Expand Up @@ -63,7 +63,7 @@ export const Users: NextPage<PageProps> = (props) => (
fallback: {
// https://swr.vercel.app/docs/with-nextjs#complex-keys
[unstable_serialize(
getUsersWalletorhandleKey({}, { walletOrHandle: props.userAddress })
getUsersWalletorHandleKey({}, { walletOrHandle: props.userAddress })
)]: props.carbonmarkUser,
},
}}
Expand Down
2 changes: 1 addition & 1 deletion carbonmark/lib/api/swr.keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { urls } from "lib/constants";
* Construct stable URL as key for SWR. When this key changes, data is re-fetched.
* Always includes network default 'polygon'
*/
export const getUsersWalletorhandleKey = (
export const getUsersWalletorHandleKey = (
query: GetUsersWalletorhandleQueryParams,
params: GetUsersWalletorhandlePathParams
) => {
Expand Down

0 comments on commit c5aed32

Please sign in to comment.