+ Start a Discussion
Vijay ummedaVijay ummeda 

LWC bike card component output is showing twice

Hi Team,

I am doing a trailhead challenge my output is  showing the result twice .
Can anyone help me out what could be the  issue 
html file :
<template>
    <div>
        <div>Name: {name}</div>
        <div>Description: {description}</div>
        <lightning-badge label={material}></lightning-badge>
        <lightning-badge label={category}></lightning-badge>
        <div>Price: {price}</div>
        <div><img src={pictureUrl}/></div>
    </div>
</template>

Xml file :

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>51.0</apiVersion>
    <isExposed>true</isExposed>
       <targets>
        <target>lightning__AppPage</target>
        <target>lightning__RecordPage</target>
        <target>lightning__HomePage</target>
        <target>lightningCommunity__Page</target>
    </targets>
</LightningComponentBundle>


Js file :

import { LightningElement } from 'lwc';
export default class BikeCard extends LightningElement {
    name = 'Electra X4';
    description = 'A sweet bike built for comfort.';
    category = 'Mountain';
    material = 'Steel';
    price = '$2,700';
    pictureUrl = 'https://s3-us-west-1.amazonaws.com/sfdc-demo/ebikes/electrax4.jpg';
}

Thanks,
Vijay.User-added image
Best Answer chosen by Vijay ummeda
CharuDuttCharuDutt
HII Vijay ummeda

Its Showing Fine In My Window May be  You've Added It Twice
User-added image

Please Mark it As Best Answer If It Helps
Thank You!