[ui] fix last visited on address change

feat/vaults
Tomáš Mládek 2022-02-07 10:26:19 +01:00
parent 2c36373d85
commit 4a49ec4d4f
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 4 additions and 6 deletions

View File

@ -161,12 +161,10 @@
revalidate();
}
onMount(() => {
fetch(`api/obj/${address}/LAST_VISITED`, {
method: "PUT",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ t: "Number", c: new Date().getTime() }),
});
$: fetch(`api/obj/${address}/LAST_VISITED`, {
method: "PUT",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ t: "Number", c: new Date().getTime() }),
});
</script>