Skip to content

Commit

Permalink
manage is_chain_available and is_dao_owner ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ail3ngrimaldi committed Dec 19, 2024
1 parent 88e65a3 commit 56ec118
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/molecules/create_dao_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ pub fn CreateDaoButton(props: CreateDaoButtonProps) -> Element {
let handle_click = move |_| {
nav.push(
vec![
Box::new(is_chain_available(i18.clone(), timestamp.clone(), notification.clone())),
Box::new(is_dao_owner(i18.clone(), accounts.clone(), notification.clone())),
],
"/onboarding",
);
};

let handle_mouse_enter = move |_| {
let chain_available = is_chain_available(i18.clone(), timestamp.clone(), notification.clone())();
let is_owner = is_dao_owner(i18.clone(), accounts.clone(), notification.clone())();
if is_owner.is_err() {

if chain_available.is_ok() && is_owner.is_err() {
show_tooltip.set(true);
}
};
Expand Down

0 comments on commit 56ec118

Please sign in to comment.