Fix: Profile update refresh issues (#8570)

* profile update refresh fixes

* updated avatar based on logged in user

* lint & types check fixes

* fixed settings layout to fetch udpated session

* pushing the 8448 changes to separate PR

* removing hook not required

* Removed extra code

---------

Co-authored-by: Keyur Patel <[email protected]>
Co-authored-by: Alan <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-05-20 00:37:58 +00:00
1 parent 611939ffe8
commit 3239976e18
3 files changed
+24 -6

No files matched your search

@@ -0,0 +1,13 @@
import { trpc } from "../trpc";
export function useAvatarQuery() {
const avatarQuery = trpc.viewer.avatar.useQuery(undefined, {
retry(failureCount) {
return failureCount > 3;
},
});
return avatarQuery;
}
export default useAvatarQuery;