Skip to content

Commit

Permalink
image reset
Browse files Browse the repository at this point in the history
  • Loading branch information
burtonjong committed Aug 5, 2024
1 parent 16c2947 commit 147d145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/login/FormFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function PersonalFormFields({ user }: { user: AuthUser }) {
mutationFn: async (input: FileAndUser) => {
try {
await uploadData({
path: `public/${input.id}/`,
path: `public/${input.id}/profile.png`,
data: input.image,
});

Expand Down
6 changes: 3 additions & 3 deletions src/components/user/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default function UserProfile() {
<div className="size-36">
<StorageImage
alt="cat"
path="public/cat.png"
fallbackSrc="public/profile.svg"
path={`public/${data?.id}/profile.png`}
fallbackSrc="public/profile.png"
/>
</div>
</div>
Expand All @@ -57,7 +57,7 @@ export default function UserProfile() {
</Button>
<StorageManager
acceptedFileTypes={["image/*"]}
path={`public/${data?.id}`}
path={`public/${data?.id}/profile.png`}
maxFileCount={1}
isResumable
autoUpload={false}
Expand Down

0 comments on commit 147d145

Please sign in to comment.