Skip to content

Commit

Permalink
chore:minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SySagar committed Sep 24, 2023
1 parent 8d43bba commit fc6422a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app/user/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export default function UserProfile({
}: userProfileTypes) {
const [profile, setProfile] = useState<userTypes>({} as userTypes);
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const [isLoading, setIsLoading] = useLoadingStore((state: any) => [
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
state.isLoading,
state.setIsLoading,
]);
const [isLoading, setIsLoading] = useLoadingStore(
(state: { isLoading: boolean; setIsLoading: (arg0: boolean) => void }) => [
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
state.isLoading,
state.setIsLoading,
],
);
const fetchProfile = async () => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
setIsLoading(true);
Expand Down

0 comments on commit fc6422a

Please sign in to comment.