diff --git a/src/lib/Wallet.svelte b/src/lib/Wallet.svelte index 82e6f10..685fa9c 100644 --- a/src/lib/Wallet.svelte +++ b/src/lib/Wallet.svelte @@ -15,7 +15,7 @@ //import { getTransactions } from '../service/blockchains/stellar'; import { horizonEventSource } from '../service/blockchains/stellar'; import { paymentsdones } from '../service/blockchains/stellar'; - import { paymentRealized,pagoProcess } from '../service/blockchains/stellar'; + import { paymentRealized } from '../service/blockchains/stellar'; import { createEventDispatcher } from 'svelte'; export let address: string; export let pasword: string; @@ -201,11 +201,11 @@
+ + {#if paymentDone} {#if paymentRealized=="proceso"}
{/if} - {#if paymentDone} - {#if paymentRealized=="hecho"}
{/if} - {#if paymentRealized=="fallido"} + {#if paymentRealized=="fallido" && (paymentDone.amount==undefined || paymentDone.amount<=0)} + + {/if} + {#if paymentRealized=="fallido" && (paymentDone.destination==undefined || paymentDone.destination.length!==56)} + + {/if} + {#if paymentRealized=="fallido" && (paymentDone.amount!==undefined && paymentDone.amount>0 ) && ( paymentDone.destination!==undefined && paymentDone.destination.length==56 )} {/if} - {/if}