Skip to content

Commit

Permalink
get rid of formatting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KohliSuraj committed Jun 23, 2024
1 parent e82116d commit 9ea44c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nextjs/hooks/useConditionalStarkProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import scaffoldConfig from "~~/scaffold.config";

const useConditionalStarkProfile = (address: string | undefined) => {
const shouldUseProfile =
scaffoldConfig.targetNetworks[0].network as string !== chains.devnet.network;
(scaffoldConfig.targetNetworks[0].network as string) !==
chains.devnet.network;
// Conditional hooks are not recommended, but in this case, it's the best approach to avoid issues on devnet.
const profile = shouldUseProfile
? // eslint-disable-next-line react-hooks/rules-of-hooks
Expand Down

0 comments on commit 9ea44c8

Please sign in to comment.