Skip to content

Commit

Permalink
fix: correct interface usage in finance-quick-transfer
Browse files Browse the repository at this point in the history
- Updated the `ProfilePicture_ImageSet_` interface to `ProfilePicture`.
- Adjusted type casting within AvatarProfile component to match the updated interface.
This resolves potential type inconsistencies and ensures cleaner, more accurate code.
  • Loading branch information
cswni committed Jan 20, 2025
1 parent 8775a9f commit 40e0055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sections/finance/components/finance-quick-transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function FinanceQuickTransfer({
const MAX_AMOUNT = balance;


interface ProfilePicture_ImageSet_ {
interface ProfilePicture {
optimized: {
uri: string;
};
Expand Down Expand Up @@ -353,7 +353,7 @@ export default function FinanceQuickTransfer({
<AvatarProfile
src={
profile?.metadata?.picture && 'optimized' in profile.metadata.picture
? (profile.metadata.picture as ProfilePicture_ImageSet_).optimized.uri
? (profile.metadata.picture as ProfilePicture).optimized.uri
: profile?.id
}
alt={profile?.handle?.localName ?? ''}
Expand Down

0 comments on commit 40e0055

Please sign in to comment.