diff --git a/frontend/src/routes/Compare.svelte b/frontend/src/routes/Compare.svelte index 5024b3a0..b1866b05 100644 --- a/frontend/src/routes/Compare.svelte +++ b/frontend/src/routes/Compare.svelte @@ -48,34 +48,22 @@
{proteinA} and {proteinB}
- -
- - { - // upload the protein thumbnail if it doesn't exist - if (entry !== null && entry.thumbnail === null) { - const b64 = await screenshot(); - const res = await Backend.uploadProteinPng({ - proteinName: entry.name, - base64Encoding: b64, - }); - } - }} - /> -
- Protein 1 -
- {proteinA} -
- Protein 2 -
{proteinB}
-
-
+ { + // upload the protein thumbnail if it doesn't exist + if (entry !== null && entry.thumbnail === null) { + const b64 = await screenshot(); + const res = await Backend.uploadProteinPng({ + proteinName: entry.name, + base64Encoding: b64, + }); + } + }} + />
{:else if !error}