Skip to content

Commit

Permalink
chore - fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sn123 committed Jun 24, 2021
1 parent 07ca6ed commit a709536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface Classes {
}
const getLayout = async () => {
const url = window.location.pathname;
const path = url.substring(url.lastIndexOf("/") +1);
const path = url.substring(url.lastIndexOf("/") + 1);
const response = await fetch(`${BaseUrl}api/layout`, {
method: "POST",
headers: {
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/WeatherWidget.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="center yale" v-bind:style="containerStyle">
<div>
<img :src="model.icon" v-if="model.icon" alt="&" />
<img :src="model.icon" v-if="model.icon" alt="-" />
<h4>{{ model.desc }}</h4>
<h2>{{ model.temp }} &#176;</h2>
</div>
Expand All @@ -22,9 +22,9 @@ export default class WeatherWidget extends Vue {
@Prop() private eventId?: string;
get model(): WeatherModel {
return (
getStoreItem(this.$store.state as unknown as State, this.eventId) || {
getStoreItem((this.$store.state as unknown) as State, this.eventId) || {
temp: 0,
desc: "--",
desc: "--"
}
);
}
Expand All @@ -33,7 +33,7 @@ export default class WeatherWidget extends Vue {
return {
background: this.model.image
? `url(${this.model.image}) no-repeat`
: "#1446a0",
: "#1446a0"
};
}
}
Expand Down

0 comments on commit a709536

Please sign in to comment.