{#if saving.length > 0} {#each saving as item (item.id)} {@const p = item.attributes} {@const target = toNumber(p.target_amount)} {p.name} {fmt(p, p.current_amount)} {#if target > 0} of {fmt(p, p.target_amount)} {/if} {#if target > 0} {percent(toNumber(p.percentage) / 100)} {/if} {/each} {#snippet footer()} Go to your piggy banks {/snippet} {/if}