Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use more robust address check for vesting
Alexis Sellier committed 4 years ago
commit afb03cd4705c3f2ba1e582bbb7725852cfd512a4
parent 0b647238365ab461ccd63d61d622aa4d537919a4
1 file changed +2 -2
modified src/base/vesting/Index.svelte
@@ -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>