fix: minor changes to fix review
This commit is contained in:
parent
def96c4df3
commit
825cf2ba52
2 changed files with 8 additions and 12 deletions
|
@ -33,22 +33,19 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import Button from '~/components/Button.vue';
|
||||
import CropPopup from '~/components/CropPopup.vue';
|
||||
import type { UserResponse } from '~/types/interfaces';
|
||||
|
||||
let newPfpFile: File;
|
||||
const isCropPopupVisible = ref(false);
|
||||
const cropImageSrc = ref("")
|
||||
;
|
||||
const { fetchUser } = useAuth();
|
||||
|
||||
|
||||
const user: UserResponse | undefined = await fetchUser()
|
||||
if (!user) {
|
||||
alert("could not fetch user info, aborting :(")
|
||||
}
|
||||
|
||||
let newPfpFile: File;
|
||||
const isCropPopupVisible = ref(false);
|
||||
const cropImageSrc = ref('');
|
||||
|
||||
async function saveChanges() {
|
||||
if (!user) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue