From 2c8ae6135dd12518a4f0f1a9f8614ea8dbcb778b Mon Sep 17 00:00:00 2001 From: blakemscurr Date: Tue, 6 Jul 2021 17:11:29 +1200 Subject: [PATCH] Avoid svlete error from condition slot. Error outlined here https://github.com/sveltejs/svelte/issues/3165, and there is no fix, so I just avoided having a conditional slot, and just rerouted to an installMetaMask page instead. --- src/routes/__layout.svelte | 27 +++++++++++++-------------- src/routes/installMetaMask.svelte | 1 + 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 src/routes/installMetaMask.svelte diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index be53e80..c20395c 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -1,20 +1,19 @@ -{#if mounted} - {#if metamaskInstalled} - - {:else} - Install MetaMask - {/if} -{/if} \ No newline at end of file + \ No newline at end of file diff --git a/src/routes/installMetaMask.svelte b/src/routes/installMetaMask.svelte new file mode 100644 index 0000000..ba0cdfb --- /dev/null +++ b/src/routes/installMetaMask.svelte @@ -0,0 +1 @@ +Install MetaMask \ No newline at end of file