Skip to content

Commit

Permalink
chore: fixes on useCreatePayoutProposal
Browse files Browse the repository at this point in the history
  • Loading branch information
fonstack committed Sep 20, 2024
1 parent 85337f9 commit f489758
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ export const useCreatePayoutProposal = (vault?: IVault, payout?: IPayoutResponse

const create = async () => {
try {
if (!vault || !payout || !account) return;
if (!vault || !payout || !account) return false;
setIsLoading(true);

const multisigAddress = utils.getAddress(vault.committee ?? "");
let multisigAddress: string | undefined;
try {
multisigAddress = utils.getAddress(vault.committee ?? "");
} catch (error) {
console.log(error);
return false;
}

if (!multisigAddress) {
alert("No vault multisig address. Please contact Hats team with this error.");
return false;
Expand Down

0 comments on commit f489758

Please sign in to comment.