Skip to content

Commit

Permalink
Merge pull request #588 from Gateway-DAO/pre-main
Browse files Browse the repository at this point in the history
Pre-main -> Main
  • Loading branch information
NMCarv authored Jun 21, 2023
2 parents 3e00095 + 9367999 commit 8025a80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ export const Investors = forwardRef<
},
})}
>
<Image
<img
src={investor.logo.url}
alt={investor.name}
layout="responsive"
width={investor.logo.width}
height={investor.logo.height}
/>
Expand Down
2 changes: 1 addition & 1 deletion libs/helpers/src/lib/objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const validateKey = (value: any): boolean => {
const isNotEmpty = value?.length && value.length > 0;
return isNotUndefined && isNotNull && isNotEmpty;
};
export const clearObject = <T>(obj: T): Partial<T> => {
export const clearObject = <T extends object>(obj: T): Partial<T> => {
const res = Object.keys(obj).reduce((acc, key) => {
const value = obj[key as keyof T];
if (validateKey(value)) {
Expand Down

1 comment on commit 8025a80

@vercel
Copy link

@vercel vercel bot commented on 8025a80 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.