Skip to content

Commit

Permalink
Regen lock and resolve issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed May 6, 2024
1 parent d8cba3a commit f889912
Show file tree
Hide file tree
Showing 6 changed files with 4,692 additions and 7,042 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"stylelint": "^14.16.0",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-standard": "^29.0.0",
"typescript": "^5.1.6"
"typescript": "5.1.6"
},
"resolutions": {
"@polkadot/api": "10.7.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/atlas/src/api/hooks/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const useFollowChannel = (opts?: MutationHookOptions<FollowChannelMutatio
id,
}),
fields: {
followsNum: () => mutationResult.data?.followChannel.follows,
followsNum: () => mutationResult.data?.followChannel.follows ?? 0,
},
})
},
Expand Down Expand Up @@ -195,7 +195,7 @@ export const useUnfollowChannel = (opts?: MutationHookOptions<UnfollowChannelMut
id,
}),
fields: {
followsNum: () => mutationResult.data?.unfollowChannel.follows,
followsNum: () => mutationResult.data?.unfollowChannel.follows ?? 0,
},
})
},
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/src/api/hooks/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useAddVideoView = (opts?: Omit<MutationHookOptions<AddVideoViewMuta
id: mutationResult.data?.addVideoView.videoId,
}),
fields: {
viewsNum: () => mutationResult.data?.addVideoView.viewsNum,
viewsNum: () => mutationResult.data?.addVideoView.viewsNum ?? 0,
},
})
},
Expand Down
1 change: 1 addition & 0 deletions packages/atlas/src/components/Searchbar/Searchbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type SearchbarProps = {
controlled?: boolean
onClick?: () => void
onClose: () => void
placeholder?: string
} & DetailedHTMLProps<HTMLAttributes<HTMLInputElement>, HTMLInputElement>

export const Searchbar: FC<SearchbarProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const schema = z.object({
message: 'Password address has to match.',
}
),
[ForgotPasswordStep.LoadingStep]: z.any(),
})

export const ForgotPasswordModal = () => {
Expand All @@ -64,7 +65,9 @@ export const ForgotPasswordModal = () => {
const [lazyCurrentAccountQuery] = useGetCurrentAccountLazyQuery()

const form = useForm<ForgotPasswordModalForm>({
resolver: zodResolver(isLastStep ? schema : schema.pick({ [currentStep]: true })),
resolver: zodResolver(
isLastStep ? schema : schema.pick({ [currentStep]: true } as Record<ForgotPasswordStep, true | never>)
),
})
const { authModalOpenName, setAuthModalOpenName } = useAuthStore(
(state) => ({
Expand Down
Loading

0 comments on commit f889912

Please sign in to comment.