Use more robust address check for vesting

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2021-10-29 14:32:39 +02:00
parent 0b64723836
commit afb03cd470
+2 -2
View File
@@ -7,7 +7,7 @@
import type { Config } from '@app/config';
import Modal from '@app/Modal.svelte';
import Address from '@app/Address.svelte';
import { formatAddress } from '@app/utils';
import { formatAddress, isAddressEqual } from '@app/utils';
let input: HTMLElement;
@@ -32,7 +32,7 @@
state.set(State.Idle);
}
$: isBeneficiary = info && session && (info.beneficiary === session.address);
$: isBeneficiary = info && session && isAddressEqual(info.beneficiary, session.address);
</script>
<style>