diff --git a/packages/dapp-svelte-wallet/ui/src/Petname.svelte b/packages/dapp-svelte-wallet/ui/src/Petname.svelte
index 2624002747a..485e0260f0c 100644
--- a/packages/dapp-svelte-wallet/ui/src/Petname.svelte
+++ b/packages/dapp-svelte-wallet/ui/src/Petname.svelte
@@ -18,7 +18,7 @@
{#if Array.isArray(name)}
{name[0]}
- {#each name.slice(1) as path}.{path}{#if plural}s{/if}{/each}
+ {#each name.slice(1) as path}.{path}{/each}{#if plural}s{/if}
{:else}