Skip to content

Commit

Permalink
fix: don't pluralise anything but the last path element
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 20, 2020
1 parent c57e46b commit e173dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dapp-svelte-wallet/ui/src/Petname.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

{#if Array.isArray(name)}
<span class:color class="confirmedPetname">{name[0]}</span><span class:color class="untrustedName">
{#each name.slice(1) as path}.{path}{#if plural}s{/if}{/each}
{#each name.slice(1) as path}.{path}{/each}{#if plural}s{/if}
</span>
{:else}
<span class:color class="confirmedPetname">
Expand Down

0 comments on commit e173dbc

Please sign in to comment.