removed unused stuff from the store

ref #1
This commit is contained in:
2021-04-07 20:37:59 +02:00
parent abdc510305
commit cb559da57c
4 changed files with 28 additions and 18 deletions

View File

@@ -1,5 +1,10 @@
<script>
import { apikey, lang, stationinfo, api_endpoint, laptime_track } from "./store.js";
import {
apikey,
lang,
api_endpoint,
laptime_track,
} from "./store.js";
import isURL from "validator/lib/isURL";
import isUUID from "validator/lib/isUUID";
import axios from "axios";
@@ -77,7 +82,6 @@
error = false;
errormessage = "";
apikey.set(token);
stationinfo.set(JSON.stringify(response.data));
})
.catch(function (e) {
error = true;
@@ -118,7 +122,7 @@
class="flex flex-col pt-3 md:pt-8"
onsubmit="event.preventDefault();"
on:submit={() => {
laptime_track.set(track);
laptime_track.set(track);
}}
>
<div class="flex flex-col pt-4">