Skip to content
Snippets Groups Projects
Commit 442ae00e authored by Eline Evje's avatar Eline Evje
Browse files

fix: fixed path for image in savingpath

parent eb3ed505
No related branches found
No related tags found
3 merge requests!66Final merge,!55Feat/implement image for challenge and goal,!4Pipeline fix
Pipeline #283563 passed
......@@ -82,7 +82,7 @@ import { onMounted, ref } from 'vue'
import authInterceptor from '@/services/authInterceptor'
const challengeStore = useChallengeStore()
const challengeImageUrl = ref('/assets/star.png') // Default or placeholder image
const challengeImageUrl = ref('/src/assets/star.png') // Default or placeholder image
const props = defineProps<{ challenge: Challenge }>()
interface Props {
......@@ -117,7 +117,7 @@ const getChallengeIcon = async (challengeId: number) => {
challengeImageUrl.value = URL.createObjectURL(imageResponse.data)
} catch (error) {
console.error('Failed to load challenge icon:', error)
challengeImageUrl.value = '/assets/default-icon.png' // Fallback on error
challengeImageUrl.value = '/src/assets/star.png' // Fallback on error
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment